Apple change the UITableViewCell
hierarchy in iOS 7
Using iOS 6.1 SDK
|
|
Objective-C:
UIView *cellScrollView = [[cell contentView] superview];
[cellScrollView setClipsToBounds:NO];
Swift:
let cellScrollView = cell.contentView.superview
cellScrollView?.clipsToBounds = false
The only way to access the new CellScrollView is by accessing the cell superview after it was created.
I added the following cellForRowAtIndexPath
:
cell = [[UICustomTableViewCell alloc] init];
UIView *cellScrollView = cell.myLabel.superview;
[cellScrollView.layer setMasksToBounds: NO];
I think Apple should give us a way to access this new ScrollView without hacking.