怎么将一个数组的内容放到tableview的cell中
1个回答
展开全部
我做scollview图片横向滚浏览demo(scrollview用ib拖) 想要放新建tableview每cell
UIScrollView * view = [[UIScrollView alloc] initWithFrame:CGRectMake(5, 0, 295, 40)];
view.backgroundColor = [UIColor redColor];
[view setContentSize:CGSizeMake(600, 40)];
[cell.contentView addSubview:view];
[view release];
加简单scrollview
找填充cell委托UIScrollView 添加cell面[cell addsubview:view ]
UIScrollView * view = [[UIScrollView alloc] initWithFrame:CGRectMake(5, 0, 295, 40)];
view.backgroundColor = [UIColor redColor];
[view setContentSize:CGSizeMake(600, 40)];
[cell.contentView addSubview:view];
[view release];
加简单scrollview
找填充cell委托UIScrollView 添加cell面[cell addsubview:view ]
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询