试图在 UITableViewCell 中绘制一个矩形
//Works with iOS6 and earlier but NOT with ( iOS7 )
- (void)drawRect:(CGRect)rect {
// Creating a black border
[[UIColor blackColor] setFill];
UIRectFill(CGRectMake(10, 5, 40, 43));
// Filling with rig color
[[UIColor colorWithRed:r green:g blue:b alpha:a] setFill];
UIRectFill(CGRectMake(11, 6, 38, 41));
}
有谁知道为什么这在 iOS 7 中不起作用但在 iOS 6 中起作用?