mardi 12 juillet 2016

Allowing longer usernames in JSQMessagesViewController


I have incorporated JSQMessagesViewController into my app. At present, reviewing the settings for the user name bubbles: const CGFloat kJSQMessagesCollectionViewCellLabelHeightDefault = 20.0f; const CGFloat kJSQMessagesCollectionViewAvatarSizeDefault = 30.0f; Which allows for 3 spaces for user initials as: I wish to allow for longer usernames, like 6-10 characters. How can the cell label be wrapped around the text of the user name dynamically given the length of the name?

Aucun commentaire:

Enregistrer un commentaire