Discussion Forums  >  Uncategorized

Replies: 2    Views: 270

Ultimate Teacher
Aspiring developer
Profile
Posts: 9
Reg: Jul 16, 2011
Sunshine Coast ...
90
12/03/11 09:51 PM (14 years ago)

Header Image not showing after upgrade to Xcode 4.2.1

I had put in a piece of code that showed a custom image instead of the standard nab bar, and it worked really well....until I upgraded to Xcode 4.2.1... then no header images! I have tried to create another image @2x in case it was to do with resolution, no good. Also I now get 25 issues in Xcode, mostly to do with status bar or nab bar hidden settings, or MKReverseGeocoder issues??? This is the code I put in BT_ViewUtilities.m at the end, about line 1199: @implementation UINavigationBar (UINavigationBarCategory) - (void)drawRect:(CGRect)rect { UIColor *color = [UIColor blackColor]; UIImage *img = [UIImage imageNamed: @[email protected]]; [img drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; self.tintColor = color; } @end Not sure why i went from zero issues to 25 and no header image from the upgrade?? Help would be much appreciated, Matt
 
Ultimate Teacher
Aspiring developer
Profile
Posts: 9
Reg: Jul 16, 2011
Sunshine Coast ...
90
like
12/03/11 10:51 PM (14 years ago)
Hi guys... think it's fixed now... Xcode had defaulted to build the app (and run) in iPhone 5.0 simulator! When I switched it back to 4.3 simulator it was all good.
 
Ultimate Teacher
Aspiring developer
Profile
Posts: 9
Reg: Jul 16, 2011
Sunshine Coast ...
90
like
12/05/11 05:45 AM (14 years ago)
ok... I've just done adhoc build for my iPhone 4 (iOS 5.0.1) and got the same issue of no header image and also, which doesn't happen on 5.0 simulator, missing another button image. Obviously the - 5.0 simulator means IOS not the iPhone 5 (duh). But now I'm back to having the issue on ios5... works great on ios4.3 or lower. Help anyone?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.