Re: [iPhone] Custom UIView like in iPhone Messages App
Re: [iPhone] Custom UIView like in iPhone Messages App
- Subject: Re: [iPhone] Custom UIView like in iPhone Messages App
- From: Greg Reichow <email@hidden>
- Date: Sun, 08 Nov 2009 10:57:14 +0800
I am trying to implement a custom ui view with a background image to
append
chat messages into a scroll view like in iPhone default Messages SMS
App.
But I have few things to clarify.
If its multiple lines how can I remove the image scaling so that it
would
not look like that background image is scaled ?
Could anyone suggest some solution for this.
I am not entirely sure what you mean. Yet, I would suggest using a
UITableView instead of a UIScrollView to mimic the SMS App style
message list. Each message is in a custom cell with custom height
dependent on the number of lines. The "balloons" are an image that is
just stretched to the proper height. Using a UITableView will be more
efficient than loading all messages onto a ScrollView if you have more
than a screenful of messages in the list.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden