Within my AppDelegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(200.0, 200.0, 100, 40)]; label.textColor = [UIColor white]; label.backgroundColor = [UIColor blackColor]; label.font = [UIFont systemFontOfSize:15.0]; label.text = @"Application"; [[[UIApplication sharedApplication] keyWindow] addSubview:label]; return YES; } This doesn't show up. This is for an iPad app (so I would move the label once I get it to show up). On Fri, Oct 7, 2011 at 10:08 AM, Roger Dalal <roger.da...@gmail.com> wrote: > You should be able to add your label to keyWindow from anywhere, but > appDelegate works. > > > On Oct 7, 2011, at 9:39 AM, "Eric E. Dolecki" <edole...@gmail.com> wrote: > > Can I do that in AppDelegate? > > > On Fri, Oct 7, 2011 at 9:33 AM, Roger Dalal < <roger.da...@gmail.com> > roger.da...@gmail.com> wrote: > >> Eric: >> >> This is from memory, but can't you add your UILabel as a subview to >> [UIApplication sharedApplication].keyWindow in order to make it >> persist above your other views? >> >> Roger Dalal >> >> >> On Oct 7, 2011, at 9:26 AM, "Eric E. Dolecki" < <edole...@gmail.com> >> edole...@gmail.com> wrote: >> >> > I have a storyboard that kicks off with a UITabBarController pulling in >> > relationships to UIViewControllers... producing the buttons in the >> > UITabBarController. >> > >> > >> > Works great, but was asked if I can make a static UILabel above the >> UITabBar >> > that wouldn't change between views. >> > >> > >> > In the AppDelegate there isn't any place I know of to add this kind of >> > thing. Not sure how I can add this above the TabBar yet. >> > _______________________________________________ >> > >> > Cocoa-dev mailing list ( <Cocoa-dev@lists.apple.com> >> Cocoa-dev@lists.apple.com) >> > >> > Please do not post admin requests or moderator comments to the list. >> > Contact the moderators at cocoa-dev-admins(at) <http://lists.apple.com> >> lists.apple.com >> > >> > Help/Unsubscribe/Update your Subscription: >> > >> <http://lists.apple.com/mailman/options/cocoa-dev/roger.dalal%40gmail.com> >> http://lists.apple.com/mailman/options/cocoa-dev/roger.dalal%40gmail.com >> > >> > This email sent to <roger.da...@gmail.com>roger.da...@gmail.com >> > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com