Change disclosure indicator color on cell selection

前端 未结 7 1811
甜味超标
甜味超标 2021-01-12 01:44

I\'ve read some posts on this, but still can\'t get the answer to my question.

I have a disclosure indicator. \"

相关标签:
7条回答
  • 2021-01-12 02:27

    you can try with uiimageview to apply cell accessoryType like below code:

    cell.accessoryView = myAccessoryUIImageView;
    

    cell accessoryview uiimageview not align correctly try below code:

        UIView* accessoryView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 24, 50)];
        UIImageView* accessoryViewImage = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"accessory_image.png"]];
        accessoryViewImage.center = CGPointMake(12, 25);
        [accessoryView addSubview:accessoryViewImage];
        [cell setAccessoryView:accessoryView];
        [accessoryViewImage release];//not use this line your ios sdk in 5.0 and above! 
        [accessoryView release];//not use this line your ios sdk in 5.0 and above! 
    
    0 讨论(0)
提交回复
热议问题