It is best here to subclass the UINavigation panel and override layout substructures.
In my example, I move my button to the far left if it has a 900 mark.
- (void) layoutSubviews {
[super layoutSubviews];
for (UIView *view in self.subviews) {
if ([view isKindOfClass:[UIButton class]]) {
if (view.tag == 900)
view.frame = CGRectMake(0,0, 88, 44);
}
}
}
source
share