- 控制器以及view的多种创建方式
- UINavigationController的简单使用:添加\移除子控制器
- UINavigationBar内容的设置
- 控制器的生命周期方法
- Segue的使用
- 控制器之间数据的传递
- UITabBarController的简单使用
- UITabBarController和UINavigationController的混合使用
- Modal
MJViewController *mj = [[MJViewController alloc] init];
MJViewController *mj = [[MJViewController alloc] initWithNibName:@"MJViewController" bundle:nil];
1、通过storyboard创建控制器UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Test" bundle:nil];
MJViewController *mj = [storyboard instantiateInitialViewController];
MJViewController *mj = [storyboard instantiateViewControllerWithIdentifier:@”mj"];
MJViewController的view的创建
控制器view的延迟加载
@property(nonatomic,copy) NSArray *viewControllers;
@property(nonatomic,readonly) NSArray *childViewControllers;
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated;
- (UIViewController *)popViewControllerAnimated:(BOOL)animated;
- (NSArray *)popToViewController:(UIViewController *)viewController animated:(BOOL)animated;
@property(nonatomic,retain) UIBarButtonItem *backBarButtonItem;
@property(nonatomic,retain) UIView *titleView;
@property(nonatomic,copy) NSString *title;
@property(nonatomic,retain) UIBarButtonItem *leftBarButtonItem;
@property (nonatomic, readonly) NSString *identifier;
@property (nonatomic, readonly) idsourceViewController;
- (void)addChildViewController:(UIViewController *)childController;
@property(nonatomic,copy) NSArray *viewControllers;
App主流UI框架结构- (void)presentViewController:(UIViewController *)viewControllerToPresent animated: (BOOL)flag completion:(void (^)(void))completion
- (void)dismissViewControllerAnimated: (BOOL)flag completion: (void (^)(void))completion;