IOS AlertView动态添加按钮
来源:互联网 发布:淘宝售假限制宝贝数量 编辑:程序博客网 时间:2024/05/22 14:15
UIAlertView* genderAlert = [[UIAlertView alloc] initWithTitle:@"颜色" message:nil delegate:self cancelButtonTitle:nil otherButtonTitles:nil, nil];
if (_productColorArray) {
for (int i = 0; i < _productColorArray.count; i++) {
NSString* str = [_productColorArray objectAtIndex:i];
if ( ![str isEqual:[NSNull null]] && str.length != 0) {
[genderAlert addButtonWithTitle:str];
}
}
}
[genderAlert addButtonWithTitle:@"取消"];
genderAlert.cancelButtonIndex = genderAlert.numberOfButtons-1;
[genderAlert show];
return;
UIActionSheet 添加的方法类似。
0 0
- IOS AlertView动态添加按钮
- iOS 动态添加按钮
- ios alertView添加输入框
- iOS开发:动态添加按钮
- iOS开发:动态添加按钮
- iOS中AlertView添加输入框
- iOS中AlertView添加输入框
- iOS中AlertView添加输入框
- iOS开发1:动态添加按钮
- iOS虚拟键盘上添加动态按钮
- iOS虚拟键盘上添加动态按钮
- iOS: 学习笔记, 动态添加按钮
- 【代码笔记】iOS-UIActionSheet动态添加按钮
- ios alertView
- iOS学习之动态添加Button和监听UIAlertView按钮
- 在iOS虚拟键盘上添加动态隐藏按钮
- iOS学习之动态添加Button和监听UIAlertView按钮
- 在iOS虚拟键盘上添加动态隐藏按钮
- 第二十七章:不改变正负数之间相对顺序重新排列数组
- Apache构建WEB服务器
- 计算机视觉库、人脸识别开源库
- web.xml中出现<servlet-name>default</servlet-name>是什么意思?
- PAXOS算法3
- IOS AlertView动态添加按钮
- 去掉字符串中的 数字,字母,或者汉字
- Linux 下OCCI( Oracle C++ Call Interface )安装和使用
- java慎用String.substring(int start, int end)
- ET模式下epoll编程需要注意的问题
- 练习,输出1/3-3/5+5/7-7/9…+19/21的结果
- 后台架构常用开源项目
- [Cocos2d-x] loading加载动画
- c++电话面试题集锦