I've got a table with custom cells brought in from an IB file. Cell is created like this:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *MyIdentifier = @"MyIdentifier";
MyIdentifier = @"BasicCell";
BasicCell *cell = (BasicCell *)[tableView dequeueReusableCellWithIdentifier:MyIdentifier];
if(cell == nil) {
[[NSBundle mainBundle] loadNibNamed:@"BasicCell" owner:self options:nil];
cell = basicCell;
}
[cell setLabelText:@"Test"];
return cell;
}
The cell is designed to look like a jazzed up version of the rounded table style (diff colors, gradients etc). It's really a plain style table, with custom graphics. From the users perspective, it doesn't lie flush to the left and right of the view.
When I select the cell, how do I get it to change to another custom cell design from IB? At the moment, it just shows a blue standard selection thing behind an image view that I'm using within the cell nib. Because I'm trying to copy the rounded style table look, I guess I would need three versions of the table cell - top rounded, standard, and bottom rounded.