To add an image @ The right side in the cell, I would suggest you create a custom cell with the image on the right side, this will be very useful for you. and add an empty view to associate this nib with the customcell class.
Now, in your nib element of the cell file, delete the view, add tableViewcell and drag the image to the right in this cell.
Now go to the TableViewCell class, say DemoCell, create a socket and install it using the image in the nib tabletop
Now in the tableview method cellforrowatindexpath refer to your cell and use it with a nib name like this
static NSString *CellIdentifier = @"Cell"; DemoCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[SettingCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; cell = [[[NSBundle mainBundle]loadNibNamed:@"DemoCell" owner:self options:nil] lastObject]; }
and set the image according to your requirement
cell.imageVw.img ....
iCoder Jul 12 '12 at 9:45 2012-07-12 09:45
source share