Есть. Вы можете добавить свой вид к основному window
и вывести его на передний план, когда вам нужно.
В следующем коде предполагается, что _viewConroller
и _anotherView
являются сильными свойствами appDelegate - конфигурация может, конечно, отличаться.
Этот код добавит маленький синий квадрат в верхнем левом углу экрана.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
_viewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
_anotherView = [[UIView alloc] initWithFrame: CGRectMake (0.0,0.0,20.0,20.0)];
[anotherView setBackgroundColor: [UIColor blueColor]];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
[self.window addSubView: _anotherView];
[self.window bringSubViewToFront: _anotherView]; //not really needed here but it doesn't do any harm
return YES;
}