• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question in regards to UITabBarController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question in regards to UITabBarController


  • Subject: Re: Question in regards to UITabBarController
  • From: "Eric E. Dolecki" <email@hidden>
  • Date: Fri, 07 Oct 2011 10:15:24 -0400

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 <email@hidden> 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" <email@hidden> wrote:
>
> Can I do that in AppDelegate?
>
>
> On Fri, Oct 7, 2011 at 9:33 AM, Roger Dalal < <email@hidden>
> email@hidden> 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" < <email@hidden>
>> email@hidden> 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 ( <email@hidden>
>> email@hidden)
>> >
>> > 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:
>> >
>> >
>> > This email sent to <email@hidden>email@hidden
>>
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Question in regards to UITabBarController
      • From: "Eric E. Dolecki" <email@hidden>
References: 
 >Question in regards to UITabBarController (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: urlFromString creating bad URLs with string containing []
  • Next by Date: Re: Question in regards to UITabBarController
  • Previous by thread: Question in regards to UITabBarController
  • Next by thread: Re: Question in regards to UITabBarController
  • Index(es):
    • Date
    • Thread