Re: How to change UITableView cell style dynamically
Re: How to change UITableView cell style dynamically
- Subject: Re: How to change UITableView cell style dynamically
- From: Tharindu Madushanka <email@hidden>
- Date: Sat, 21 Nov 2009 15:25:32 +0530
Hi
Removing reuse identifier solved the problem so now I am creating a cell
like below. It worked.
UITableViewCellStyle style;
if(profile.name.length > 0) {
style = UITableViewCellStyleSubview;
} else {
style = UITableViewCellStyleDefault;
}
UITableViewCell *cell = [[[UITableViewCell alloc] initWithStyle:style
reuseIdentifier:nil]autorelease];
No reuse identifiers or dequeue method in table view is not used while
creating cells
Since its only once cell, doing this is ok ? is it ?
-Tharindu
_______________________________________________
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