I want to outline Uitableview's selected cell
can anyone te开发者_运维技巧ll me how to do this ?
searched but nothing worked till now :(
should I do anything in rowdidselect method?
Try setting the allowsSelectionDuringEditing property on the UITableView to YES - the default is NO
For More
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    [self doSomethingWithRowAtIndexPath:indexPath];
}
What I understand from your question is u want to change the look off the selected cell... On didSelectRowAtIndexPath Event you have the index off that row by that index draw a New CELL off your desire.
You can create a custom uiview and override the drawrect method so that it will create border lines across the given rect. Add this view to the cell.contentview when didSelectrow method is getting invoked.
I think you need to subclass your UITableViewCell. Then in the drawRect method you can draw that.
- (void) drawRect : (CGRect)rect
{
    [super drawRect:rect]; 
    if (self.selected)
    {
      // put one image as outline  
    } 
} 
I hope this might help you.
Naveen
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论