Access iOS 7 hidden UITableViewCellScrollView?

后端 未结 2 744
庸人自扰
庸人自扰 2021-02-06 13:40

Apple change the UITableViewCell hierarchy in iOS 7

Using iOS 6.1 SDK


   | 
   |           


        
2条回答
  •  名媛妹妹
    2021-02-06 14:33

    Objective-C:

    UIView *cellScrollView = [[cell contentView] superview];
    [cellScrollView setClipsToBounds:NO];
    

    Swift:

    let cellScrollView = cell.contentView.superview
    cellScrollView?.clipsToBounds = false
    

提交回复
热议问题