Re: Auto resize due to personal hotspot blue bar
Re: Auto resize due to personal hotspot blue bar
- Subject: Re: Auto resize due to personal hotspot blue bar
- From: Jonathan Hull <email@hidden>
- Date: Sun, 21 Oct 2012 18:21:09 -0700
I think you want the FlexibleBottomMargin instead. You are defining which distance is ok to change and in this case you want the distance from the bottom of the parentView to change while keeping the top pinned in place (i.e. moving with your superview as it is resized).
Thanks,
Jon
On Oct 21, 2012, at 6:10 PM, Damien Cooke <email@hidden> wrote:
> 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
>
_______________________________________________
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