ios开发tableviewcell可选如何设置数量的最大值
答案:1 悬赏:30 手机版
解决时间 2021-11-17 12:27
- 提问者网友:回忆在搜索
- 2021-11-17 01:20
ios开发tableviewcell可选如何设置数量的最大值
最佳答案
- 五星知识达人网友:青灯有味
- 2021-11-17 01:37
//方法一:cell .contentView .backgroundColor = [ UIColor redColor ];//方法二:UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier :CellIdentifier];UIView* bgview = [[ UIView alloc ] initWithFrame :CGRectMake( 0 , 0 , 1 , 1 )];bgview .opaque = YES ;bgview .backgroundColor = [ UIColor orangeColor ];[cell setBackgroundView :bgview];//方法三:- ( void )tableView:( UITableView *)tableView willDisplayCell :( UITableViewCell *)cell forRowAtIndexPath :( NSIndexPath *)indexPath{cell .backgroundColor = [ UIColor redColor ]; }
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯