上一页 1 2 3 4 5 6 7 ··· 10 下一页
  2015年11月21日
摘要: // UIActionSheet这个控件很常用,和UIAlertView类似,先附图// 添加了过多的选项,就会以列表的形式显示// 正常显示// 下面直接上代码// 注意,需要在头文件中实现UIActionSheetDelegate协议UIActionSheet *actionSheet = [[... 阅读全文
posted @ 2015-11-21 17:13 sharkHZ 阅读(121) 评论(0) 推荐(0)
摘要: // UIProgressView的使用 常用于歌曲的和下载的进度条UIProgressView *oneProgressView = [[UIProgressView alloc] init];oneProgressView.frame = CGRectMake(0, 30, 320, 30); ... 阅读全文
posted @ 2015-11-21 17:12 sharkHZ 阅读(242) 评论(0) 推荐(0)
摘要: #import "RootViewController.h"#import // 引入@interface RootViewController ()@property (nonatomic,strong)AVPlayer *player;@property (nonatomic,strong)AV... 阅读全文
posted @ 2015-11-21 17:11 sharkHZ 阅读(319) 评论(0) 推荐(0)
摘要: // UITextView的常用方法 主要用来输入和显示多行文本信息UITextView *oneTextView = [[UITextView alloc] init];oneTextView.frame = CGRectMake(0, 20, 320, 200); // 设置位置oneTextV... 阅读全文
posted @ 2015-11-21 17:10 sharkHZ 阅读(210) 评论(0) 推荐(0)
摘要: // UIAlertView的常用方法// 标准样式UIAlertView *oneAlertView = [[UIAlertView alloc] initWithTitle:@"标题" message:@"提示内容" delegate:self cancelButtonTitle:@"关闭" o... 阅读全文
posted @ 2015-11-21 17:10 sharkHZ 阅读(192) 评论(0) 推荐(0)
摘要: {// UIDatePicker控件的常用方法 时间选择控件UIDatePicker *oneDatePicker = [[UIDatePicker alloc] init];oneDatePicker.frame = CGRectMake(0, 10, 320, 300); // 设置显示的位置和... 阅读全文
posted @ 2015-11-21 17:09 sharkHZ 阅读(142) 评论(0) 推荐(0)
摘要: {// UISwitch的使用UISwitch *oneSwitch = [[UISwitch alloc] initWithFrame:CGRectMake(20, 20, 0, 0)]; // 默认尺寸为79 * 27。oneSwitch.backgroundColor = [UIColor g... 阅读全文
posted @ 2015-11-21 17:08 sharkHZ 阅读(145) 评论(0) 推荐(0)
摘要: 1.UIWindow定义初始:1⃣️:初始化窗口:self.window = [[[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]]autorelease];2⃣️:设置背景色:self.window.backgroundColo... 阅读全文
posted @ 2015-11-21 17:07 sharkHZ 阅读(186) 评论(0) 推荐(0)
摘要: 1.UITextField1⃣️:初始给值UITextField *textfield1= [[UITextField alloc]initWithFrame:CGRectMake(100, 100, 150, 40)];textfield1.backgroundColor = [UIColor c... 阅读全文
posted @ 2015-11-21 17:06 sharkHZ 阅读(167) 评论(0) 推荐(0)
摘要: 1.UIEvent(事件)1⃣️:事件分为三种:1 触摸事件 2 晃动事件 3 远程控制2⃣️:触摸事件//1. UIControlEventTouchUpInside 点击进去(点后松手)//2. UIControlEventTouchDown 单击(点就出)//3. UIContro... 阅读全文
posted @ 2015-11-21 17:05 sharkHZ 阅读(159) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页