I've got something that kind of stumps me.
In my iPhone app delegate I have this code, which works (accessing the view property of the UIViewController MainViewController):
What I originally wanted to do was:
which fails with an "error: accessing unknown 'view' component of a property."
Can anybody enlighten me as to why?
In my iPhone app delegate I have this code, which works (accessing the view property of the UIViewController MainViewController):
Code:
MainViewController *mainViewController =
(MainViewController*)rootViewController.mainViewController;
MainView *mainView = (MainView *)[mainViewController view];
What I originally wanted to do was:
Code:
MainView *mainView = rootViewController.mainViewController.view;
Can anybody enlighten me as to why?