Joined September 2013
·

Dominik Traxinger

Austria
·
·

Thanks, I looked for that code, but one thing: I would add that line to prevent an exception:

[self.navigationController.navigationBar.subviews enumerateObjectsUsingBlock:
 ^(id obj, NSUInteger idx, BOOL *stop) {
     if ([obj isKindOfClass:NSClassFromString(@"_UINavigationBarBackground")]){
         UIView* v = obj;
         if ([v.subviews count] > 0) {
             [[v.subviews objectAtIndex:0] removeFromSuperview];
             *stop=YES;
         }
     }
 }];
Achievements
1 Karma
0 Total ProTip Views