iphone - Different image in each cell of a UITableview -
I want to set a different image for each cell in my table view. I do not know how to do this - please Help me
You can create a custom cell with a UIImageView in it, but the simplest way is to use your cell Set the built-in image view of the default UITableViewCell in the ForereAttendApath table view rep. Something like this:
UITableViewCell * cell = [table view dequeueReusableCellWithIdentifier: CellIdentifier]; If (cell == blue) {cell = [[UTABEL power ALL] InitVithframe: CGRxero]; // ... other cell initialization here) [[cell image view] set image: image];
Where the image is a UII that you have loaded with the URL or made from the local app bundle.
Comments
Post a Comment