-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bubble with random left margin #21
Comments
I think you can do that in |
Artur, Thank you for your quick reply. Because the cell is auto resized according to the message content, how can I calculate the Thank you in advance! 在 2014年7月30日,下午2:17,Artur Mkrtchyan notifications@github.com 写道:
|
|
Thank you again for your reply. Now when I put
into 在 2014年7月30日,下午2:48,Artur Mkrtchyan notifications@github.com 写道:
|
You can't set view.frame.origin.x directly. CGRect frame = cell.containerView.frame;
frame.origin.x = 100;
cell.containerView.frame = frame; |
Sorry, I followed your direction, but nothing happened. 在 2014年7月30日,下午3:18,Artur Mkrtchyan notifications@github.com 写道:
|
Hi, all,
I am developing a chat app to support message bubbles appear randomly of the left margin in the table cell. I find that in
SOMessageCell
, thekBubbleLeftMargin
andkBubbleRightMargin
are defined as a fixed number. I wonder what is the best way to randomly generate these two values to make the messages appear more interesting. Is it inadjustCell
?Thank you very much!
The text was updated successfully, but these errors were encountered: