iphone - How can I make my UINavigationBar not look all scrunched up? -
following these instructions of making view controller 2 child controllers pans similar sidebar layout, makes navigation bar scrunched when sidebar opened.
is there way me fix autolayout issue?
edit -
- (void)viewdidload { [super viewdidload]; self.leftcon.constant = -280; // additional setup after loading view. //[self slidetotheright]; } -(void)slidetotheright{ self.sidebaropened = yes; [uiview animatewithduration:0.5 animations:^{ self.leftcon.constant = 0; }]; } -(void) slideback{ self.sidebaropened = no; [uiview animatewithduration:0.5 animations:^{ self.leftcon.constant = -280; }]; }
basically right bar button item , titleview somehow end squished against right side of screen when left constraint changed -280 0.
i had remove constraint right child view trailing width.
Comments
Post a Comment