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: Damien Cooke <email@hidden>
- Date: Sun, 8 Nov 2009 20:03:16 +1030
Tharindu,
I did this by subclassing UITableView and overriding - (void)
setBackgroundImage:(UIImage*)image
This gives me a static background that the tableView will scroll over
the top.
Next you need to create a custom cell for your messages and pop them
into the UItableView subclass in the method - (UITableViewCell *)
tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath
*)indexPath
Someone will probably correct my approach if it is inefficient or
incorrect.
I hope this helps. Let me know if you still can not get there.
Regards
Damien
On 08/11/2009, at 12:12 PM, Tharindu Madushanka wrote:
Hi,
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.
Thank you
Tharindu Madushanka
tharindufit.wordpress.com
_______________________________________________
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
"We act as though comfort and luxury were the chief requirements of
life, when all that we need to make us happy is something to be
enthusiastic about."
-- Albert Einstein
_______________________________________________
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