您的位置:首页 > 其它

对多个自定义cell同时进行相同操作

2014-11-12 17:20 162 查看
在cell的点击事件里面写以下语句

for(int i =
0; i <
12; i++)//cell的个数
{

//自定义indexPath来设置cell的样式
NSIndexPath *myIndexPath = [NSIndexPath
indexPathForRow:i
inSection:0];

FindProductCell *cell = (FindProductCell *)[tableView
cellForRowAtIndexPath:myIndexPath];//选择出指定位置的cell
cell.labelTopic.frame =
CGRectMake(_myWidth *
240 / 320,_myHeight *
15 / 480,_myWidth *
80 / 320,_myHeight *
20 / 480);//对cell上面的控件进行操作
cell.labelBrand.alpha =
0.0;//标签透明度
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: