缩略语
在我的应用中:didFinishLaunching WithOptions 我的摘录如下。
UIViewController *viewController1 = [[WSWFirstViewController alloc] initWithNibName:@"WSWFirstViewController" bundle:nil];
UIViewController *viewController2 = [[WSWSecondViewController alloc] initWithNibName:@"WSWSecondViewController" bundle:nil];
self.tabBarController = [[TabBarController alloc] init];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:viewController1, viewController2, nil];
self.window.rootViewController = self.tabBarController;
[self.tabBarController showSplash];
[viewController1 displayItems];
What I m trying to do is access the displayItems property of the viewController1 object which is of the type WSWFirstViewController.
In WSWFirstViewController.h I have
@property (retain, nonatomic) NSMutableArray *displayItems;
In WSWFirstViewController.m 我有@syntheize showItems。
I can t seem to figure out why I get a:
财产展览 未找到的物项
直到我注意到我的反对(Controller1)是“IDViewController” * 的编号,但WSWFirstViewController *。 但是,这仍然无助于我。
任何建议都值得赞赏。