小控件集合
来源:互联网 发布:win7 for mac 安装iso 编辑:程序博客网 时间:2024/06/06 04:42
// 旋转按钮
UIActivityIndicatorView *alert = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(100, 200, 100, 100)];
[alert setColor:[UIColor grayColor]];
[_window addSubview:alert];
[alert startAnimating];
[alert release];
- (void)startAnimating;
- (void)stopAnimating;
- (BOOL)isAnimating;
效果图:
//下弹选择框
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"标题" delegate:self cancelButtonTitle:@"取消" destructiveButtonTitle:@"buttt" otherButtonTitles:@"button2",@"button3", nil];
[sheet showInView:_window];
[sheet release];
效果图:
//左右选择框
UISegmentedControl *seg = [[UISegmentedControl alloc] initWithItems:@[@"aaa", @"aaa"]];
[seg setFrame:CGRectMake(50, 100, 100, 30)];
[_window addSubview:seg];
[seg release];
//滑动选择框
UISwitch *sw = [[UISwitch alloc] initWithFrame:CGRectMake(50, 150, 50, 30)];
[_window addSubview:sw];
[sw release];
//工具条
UIToolbar *too = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 528, 320, 40)];
[too setBackgroundColor:[UIColor grayColor]];
[_window addSubview:too];
[too release];
- 小控件集合
- VC 控件集合
- 常用控件类集合
- VC 控件集合
- JS日历控件集合
- VC控件集合
- VC 控件集合
- js日历控件集合
- Android自定义控件集合
- UI控件集合图
- UI常用控件集合
- Andrid 控件集合大全
- 控件属性集合
- Android开源库集合(控件)
- Android开源库集合(控件)
- Android开源库集合(控件)
- 安卓控件集合
- Android开源库集合(控件)
- MySQL单表多字段模糊查询解决方法
- Spring bean的作用域
- 在android中实现DES加密
- 最爱的城市
- #294 (div.2) E.A and B and Lecture Rooms
- 小控件集合
- Codeforces Round #294 (Div. 2) E
- 解决ADT和SDK版本不一致问题
- Cocos2d-x 3.2 onEnter与onEnterTransitionDidFinish的区别
- struct/class/union内存对齐原则
- Python的platform模块
- python 赋值的时候是引用,如果需要复制则需要注意深拷贝和浅拷贝的区别
- OC--简单的ATM算法
- java AES 加解密代码