I have an aplication with the delegate, the controller and some other things. The thing is that i initzialize everything in the controller with init. This init creates 3 UIVIews (openGL, imagepickerview and a MKMapView) and I want these views to be added in the window, so they are on top of the other. However, somehow it only paints one of the 3, the imagePickerView. Here is the delegate:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window.rootViewController = self.viewController;
viewController = [[ARInvadersViewController alloc] initWithWindow:self.window];
return YES;
}
And here the controller:
-(id)initWithWindow:(UIWindow *)_window{
self.window = _window;
// ...
// Some code here
// ...
[self.window addSubview:imagePickerController.view];
[self.window addSubview:self.glView];
[self.window addSubview:mapView];
[self.window makeKeyAndVisible];
}
Am I Doing it OK?