Re: Question in regards to UITabBarController
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:31:49 -0400
in viewWillAppear worked. Thanks :)
Google Voice: (508) 656-0622
Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki
http://blog.ericd.net
On Fri, Oct 7, 2011 at 10:15 AM, Eric E. Dolecki <email@hidden> wrote:
> 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