【发布时间】:2012-11-24 16:39:44
【问题描述】:
没有故事板的示例:
AppDelegate.h
@property (retain, nonatomic) UIViewController *leftController;
AppDelegate.m
self.leftController = [[LeftViewController alloc] initWithNibName:@"LeftViewController" bundle:nil];
其他视图控制器:
//This is what I want do to in storyboards
self.viewDeckController.leftController = (AppDelegate*)[[UIApplication sharedApplication] delegate].leftController;
使用情节提要时如何获取 leftController 的实例?
【问题讨论】:
标签: iphone ios uiviewcontroller instance uistoryboard