摘要:
新建一个空的project;1.选择File — New — New File,在弹出的窗口,左边选择Cocoa Touch,右边选择UIViewController subclass,之后选Next,在弹出的窗口中,输入名称BlueViewController,并选中With xib,如下图2.创... 阅读全文
posted @ 2014-12-24 19:21
ทดสอบ
阅读(156)
评论(0)
推荐(0)
摘要:
1.在main.storyboard 或者viewcontroller.xib 拖出一个UIPickerView 控件和button 控件;如图2.1 选中Picker View控件,2 打开Connections Inspector,3 4 找到delegate和datasource,从它们右边的... 阅读全文
posted @ 2014-12-24 18:10
ทดสอบ
阅读(673)
评论(0)
推荐(0)
摘要:
1.在当前的视图头文件添加协议UIActionSheetDelegate如:@interface DebbieViewController : UIViewController2.在当前的视图的DebbieViewController.m文件中实现协议的方法;-(void)actionSheet:(... 阅读全文
posted @ 2014-12-24 16:04
ทดสอบ
阅读(355)
评论(0)
推荐(0)
摘要:
1.在当前的视图中控制器中的头文件DebbieViewController.h 中添加UIalertView 的委托;让当前的View代理UIalertView的监听按钮点击事件;2.在当前的视图中控制器的DebbieViewController.m中实现UIalertview的委托方法;-(voi... 阅读全文
posted @ 2014-12-24 15:46
ทดสอบ
阅读(348)
评论(0)
推荐(0)
摘要:
//创建一个导航栏 UINavigationBar *navigationBar=[[UINavigationBar alloc] initWithFrame:CGRectMake(0, 0, 320, 44)]; //创建一个导航栏集合 UINavigationItem ... 阅读全文
posted @ 2014-12-24 11:21
ทดสอบ
阅读(173)
评论(0)
推荐(0)
浙公网安备 33010602011771号