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 protected]> 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 protected])
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/jhull%40gbis.com
> 
> This email sent to [email protected]
> 


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to