美文网首页iOS专题
iOS 更改Cell选中的背景

iOS 更改Cell选中的背景

作者: Zhen斌iOS | 来源:发表于2020-06-09 13:51 被阅读0次

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

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

希望能帮助到你!

相关文章

网友评论

    本文标题:iOS 更改Cell选中的背景

    本文链接:https://www.haomeiwen.com/subject/impstktx.html