黑马程序员—IOS基本控件

----------------------java培训Android培训IOS培训.Net培训期待与您交流!----------------------


1.UISegmentControl (分段控制器) 
 
2.UISlider(滑块) 
 
3.UISwitch(开关) 
 
4,UIActivityIndicatorView(加载指示器) 
 
5.UIProgressView(进度条) 
 
6,UIStepper(步控件) 
 
7.UITextView (文本输入) 
 
8.UILabel (显示信息) 
 
9.UIButton(按钮) 
 
10.UITouch(触摸) 
 
10.UITextField 
 
11.UINavigationController(导航控制器) 
 
11.UIToolbar 
 
12.UIImageView(视图) 
 
13.UISearchbar(搜索按钮) 
 
14.UIActionSheet(实现硬编码按钮) 
 
15.UIAlertView 
 
16.UITabBarController 
 
17.UIPickerView 
 
18.UIControl (创建用户界面控件对象) 
 

 wk_ad_begin({pid : 21});wk_ad_after(21, function(){$('.ad-hidden').hide();}, function(){$('.ad-hidden').show();});    



19.UIDatePicker (日期/时间选取器) 
 
20.UIScrollView 
 
21.UITableView 
 
21.UIPageControl (用来控制翻页) 
   
1、UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 50, 320, 2)]; 
 
2、UIButton *button = 
[UIButton 
buttonWithType:UIButtonTypeCustom]; 
 
3、RootViewController *rootVC = [[RootViewController alloc] init]; 
 
4、UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)]; 
 
5、UITextField *tf = [[UITextField alloc] 
initWithFrame:CGRectMake(10, 50, 300, 40)]; 
 
6、UIToolbar *toolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, self.view.frame.size.height - 44,self.view.frame.size.width, 44)]; 
 
7、UIBarButtonItem *left = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSave target:self action:@selector(save)]; 
 
8、UITapGestureRecognizer *tapOneGesture = 
[[UITapGestureRecognizer alloc] initWithTarget:self 
action:@selector(tapOne:)]; 
 
9、AppDelegate *app = [[UIApplication sharedApplication] delegate]; 
  10、UIControl *control = [[UIControl alloc] 
initWithFrame:CGRectMake(100, 40, 80, 40)]; 

常用基本控件: 
 
UISegmentControl     分段控制器 
 
UISlider            滑块   
UISwitch            开关控件 
 
UIActivityIndicatorView 活动指示器 
 
UIProgressView           进度条 
 
UIStepper 
 
UITextView

----------------------java培训Android培训IOS培训.Net培训期待与您交流!----------------------

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值