上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页

2017年3月8日

IOS 控制器View的创建方式(方式的优先级 、view的延迟加载)

摘要: MJViewController的view的创建 的方式的优先级 控制器view的延迟加载 ● 控制器的view是延迟加载的:用到时再加载 ● 可以用isViewLoaded方法判断一个UIViewController的view是否已经被加载 ● 控制器的view加载完毕就会调用viewDidLoa 阅读全文

posted @ 2017-03-08 16:35 守望星空 阅读(209) 评论(0) 推荐(0) 编辑

IOS 模仿有storyboard的项目控制器的创建

摘要: ● 先加载storyboard文件(Test是storyboard的文件名) UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Test" bundle:nil]; ● 接着初始化storyboard中的控制器 ➢ 初始化“初 阅读全文

posted @ 2017-03-08 16:33 守望星空 阅读(97) 评论(0) 推荐(0) 编辑

IOS 控件器的创建方式(ViewController)

摘要: ● 控制器常见的创建方式有以下几种 ➢ 通过storyboard创建 ➢ 直接创建 NJViewController *nj = [[NJViewController alloc] init]; ➢ 指定xib文件来创建 NJViewController *nj = [[NJViewControll 阅读全文

posted @ 2017-03-08 16:23 守望星空 阅读(200) 评论(0) 推荐(0) 编辑

IOS Window窗口使用

摘要: // 程序启动完毕之后就会调用一次 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // 1.创建UIWindow self.window = [[UIWindow alloc] initWithFr... 阅读全文

posted @ 2017-03-08 16:09 守望星空 阅读(166) 评论(0) 推荐(0) 编辑

2017年3月5日

IOS Prefix.pch程序常见文件 的作用

摘要: #import #ifndef __IPHONE_5_0 #warning "This project uses features only available in iOS SDK 5.0 and later." #endif // __OBJC__这个宏,在所有的.m和.mm文件中默认就定义了这个宏 #ifdef __OBJC__ // 如果这个全局的头文件或者宏只需要在.... 阅读全文

posted @ 2017-03-05 14:47 守望星空 阅读(149) 评论(0) 推荐(0) 编辑

2017年3月4日

IOS DatePicker 和 UIBarButtonItem 常用属性

摘要: - (void)viewDidLoad { [super viewDidLoad]; // // self.inputTextField.inputView = [[UISwitch alloc ] init]; // 1.创建时间选择器 UIDatePicker *datePicker = [[UIDatePicker alloc] i... 阅读全文

posted @ 2017-03-04 22:09 守望星空 阅读(161) 评论(0) 推荐(0) 编辑

IOS PickerView使用

摘要: - (void)viewDidLoad { [super viewDidLoad]; // 1.创建pickerview // pickerview有默认的frame UIPickerView *pickerView = [[UIPickerView alloc] init]; pickerView.dataSource = self; ... 阅读全文

posted @ 2017-03-04 22:06 守望星空 阅读(109) 评论(0) 推荐(0) 编辑

IOS AppDelegate常用方法

摘要: // 当应用程序启动完毕的时候就会调用(系统自动调用) - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after applicatio... 阅读全文

posted @ 2017-03-04 21:27 守望星空 阅读(169) 评论(0) 推荐(0) 编辑

IOS UIApplication使用

摘要: - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. // UIApplication *app = [UIApplication sharedApplication]; // ... 阅读全文

posted @ 2017-03-04 21:25 守望星空 阅读(111) 评论(0) 推荐(0) 编辑

2017年3月3日

IOS UIButton常用属性

摘要: //1.添加按钮 UIButton *nameView=[UIButton buttonWithType:UIButtonTypeCustom]; //nameView.backgroundColor=[UIColor redColor]; [nameView setBackgroundImage:[UIImage ... 阅读全文

posted @ 2017-03-03 14:49 守望星空 阅读(181) 评论(0) 推荐(0) 编辑

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 29 下一页

导航