上一页 1 2 3 4 5 6 7 ··· 10 下一页
  2015年11月21日
摘要: // UIActionSheet这个控件很常用,和UIAlertView类似,先附图// 添加了过多的选项,就会以列表的形式显示// 正常显示// 下面直接上代码// 注意,需要在头文件中实现UIActionSheetDelegate协议UIActionSheet *actionSheet = [[... 阅读全文
posted @ 2015-11-21 17:13 sharkHZ 阅读(117) 评论(0) 推荐(0) 编辑
摘要: // UIProgressView的使用 常用于歌曲的和下载的进度条UIProgressView *oneProgressView = [[UIProgressView alloc] init];oneProgressView.frame = CGRectMake(0, 30, 320, 30); ... 阅读全文
posted @ 2015-11-21 17:12 sharkHZ 阅读(229) 评论(0) 推荐(0) 编辑
摘要: #import "RootViewController.h"#import // 引入@interface RootViewController ()@property (nonatomic,strong)AVPlayer *player;@property (nonatomic,strong)AV... 阅读全文
posted @ 2015-11-21 17:11 sharkHZ 阅读(307) 评论(0) 推荐(0) 编辑
摘要: // UITextView的常用方法 主要用来输入和显示多行文本信息UITextView *oneTextView = [[UITextView alloc] init];oneTextView.frame = CGRectMake(0, 20, 320, 200); // 设置位置oneTextV... 阅读全文
posted @ 2015-11-21 17:10 sharkHZ 阅读(205) 评论(0) 推荐(0) 编辑
摘要: // UIAlertView的常用方法// 标准样式UIAlertView *oneAlertView = [[UIAlertView alloc] initWithTitle:@"标题" message:@"提示内容" delegate:self cancelButtonTitle:@"关闭" o... 阅读全文
posted @ 2015-11-21 17:10 sharkHZ 阅读(187) 评论(0) 推荐(0) 编辑
摘要: {// UIDatePicker控件的常用方法 时间选择控件UIDatePicker *oneDatePicker = [[UIDatePicker alloc] init];oneDatePicker.frame = CGRectMake(0, 10, 320, 300); // 设置显示的位置和... 阅读全文
posted @ 2015-11-21 17:09 sharkHZ 阅读(139) 评论(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 阅读(141) 评论(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 阅读(180) 评论(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 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 1.自定义视图流程:1⃣️ 新建一个类 继承于UIView2⃣️ 将控件写成view的属性3⃣️ .m初始化4⃣️ 直接在类外引入头文件 调用5⃣️ 注意: 建议不要把控件的初始化写在系统的初始化方法里直接用self调方法 自己封装方法2.视图控制器指定自定义View新建ViewController... 阅读全文
posted @ 2015-11-21 17:05 sharkHZ 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页