iOS专题

iOS 更改Cell选中的背景

2020-06-09  本文已影响0人  Zhen斌iOS

更改Cell选中的背景,代码如下:

UIView* myview = [[UIView alloc] init];
myview.frame = CGRectMake( 0, 0, 320, 47);
myview.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed: @"0006.png"]];
cell.selectedBackgroundView = myview;

希望能帮助到你!

上一篇 下一篇

猜你喜欢

热点阅读