IOS开发for循环创建button
来源:互联网 发布:淘宝买电器靠谱吗 编辑:程序博客网 时间:2024/06/06 00:23
for循环创建button
for (int i = 0; i < 9; i++) { int a = i/4; //取余 int b = i%4; //取整 UIButton *tagButton = [[UIButton alloc] initWithFrame:CGRectMake(20+(10+(kScreenWidth-6)/5)*b, 90+(20+10)*a, (kScreenWidth-6)/5, 20)]; tagButton.layer.borderColor = MyHexColor(@"ee2266").CGColor; tagButton.layer.borderWidth = 1; tagButton.layer.cornerRadius = 5; tagButton.tag = i; tagButton.titleLabel.font = [UIFont systemFontOfSize:12]; [tagButton setTitle:_buttonArray[i] forState:UIControlStateNormal]; [tagButton setTitleColor:MyHexColor(@"ee2266") forState:UIControlStateNormal]; [tagButton addTarget:self action:@selector(tagButtonAction:) forControlEvents:UIControlEventTouchUpInside]; [self.view addSubview:tagButton]; }
0 0
- IOS开发for循环创建button
- for循环创建button
- for 循环创建button 算法
- 重温for循环创建button
- iOS for循环写button
- iOS自适应button循环创建
- iOS for循环创建button,button的宽度根据上面的文字来自适应.
- iOS for循环创建button,button的宽度根据上面的文字来自适应.
- iOS 用for循环写了一排button
- iOS for循环创建九宫格
- iOS开发之C语言---for循环
- 循环创建button到界面
- ios创建开关Button
- iOS for循环创建UIButton及点击处理
- iOS开发 button代码
- IOS开发UI-------button
- for循环创建列表
- For循环创建图形
- 组合模式
- Java多线程程序设计详细解析
- poj3904 Sky Code【容斥原理】
- 文章标题
- BZOJ-2631 tree Link-Cut-Tree
- IOS开发for循环创建button
- ExpandableListView的用法
- NOIp 2009 多项式输出
- Python碎片小知识点总结
- 201603252026
- Metro(Ural_1119)
- 如何使用BMap.Point传递变量、存储数据?
- 各类缩写总结
- Python环境的安装