Auto resize due to personal hotspot blue bar
Auto resize due to personal hotspot blue bar
- Subject: Auto resize due to personal hotspot blue bar
- From: Damien Cooke <email@hidden>
- Date: Mon, 22 Oct 2012 11:40:19 +1030
Hi all,
I have a perplexing issue where I think I know the answer but can not make it work
I have a custom UINavigation controller with a custom titlebar
This is achieved in the UINavigationController subclass in the - (void)viewDidLoad
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,49)];
imageView.image = [UIIMage imageNamed:@"some_image"];
[self.view addSubview:imageView];
in the same method I added the following
self.view.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleTopMargin;
this works fine.
if I turn on Personal hotspot or put a phone call in the background, I get a 20px extension to the status bar.
what happens is the new bar extension pops over my image and the view drops down 20 px. what I wanted was my image in the titlebar to drop down with the view. So I tried to add to the imageView the following:
imageView.autoresizingMask = UIViewAutoresizingFlexibleHeight|UIViewAutoresizingFlexibleTopMargin;
This had no visible effect.
So I went to the ViewController that was to populate the navigation controller and set the auto-resize flags on the View to be the same as the UINavigationController subclass.
Still no improvement.
Can someone please point me in the right direction. Or have I got this right but something is wrong somewhere else?
Regards
Damien
_______________________________________________
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