I setup a PhoneGap application and dug around some of the code. Under AppDelegate there is the following object:
@property (nonatomic, strong) IBOutlet CDVViewController* viewController;
However, further down there is this line:
self.viewController = [[MainViewController alloc] init];
What does that line actually do, as viewController is a CDVViewController object, however it now seems to be saying, or at least converting it to a MainViewController object.
Also MainViewController inherits CDVViewController so whats the point should it not begin as a MainViewController like:
@property (nonatomic, strong) IBOutlet MainViewController* viewController;