对多个自定义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;//标签透明度
}
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;//标签透明度
}
相关文章推荐
- swift3.0中的自定义下拉刷新和模拟延时操作(同时和OC中的进行对比)
- 同时对多个文件进行大量写操作对性能优化
- 将相同值的行内容进行合并操作--Sql2005
- 同时可进行插入和更新操作,oracle merge语句
- 编写一个脚本,对至少三个以上记事本窗口做相同操作,对任意一个窗口进行手动操作,其余窗口由脚本执行相同步骤的键鼠操作,记得是键盘操作+鼠标操作。
- Linux下多个进程或线程同时对一个文件进行写操作
- 同时对多个文件进行大量写操作对性能优化
- [Selenium]如何通过Selenium实现Ctrl+click,即按住Ctrl的同时进行单击操作
- 用户版本号乐观锁(两个以上用户不能同时进行同一操作)
- iOS8 用UITableViewRowAction实现Cell自定义滑动操作
- 对某区间的cell进行操作
- [EntLib]微软企业库5.0 学习之路——第九步、使用PolicyInjection模块进行AOP—PART4——建立自定义Call Handler实现用户操作日志记录
- Total Commander之添加两边同时进行文件夹切换操作的按钮
- 多项操作同时进行,哪种处理方法最好?
- 同时对多个文件进行大量写操作对性能优化
- ASP.NET技巧:同时对多个文件进行大量写操作对性能优化
- Linux下多个进程或线程同时对一个文件进行写操作
- 重叠IO--命名管道同时进行读写操作