Resolved UINavigation Bar Issues?

Discussion in 'iOS Programming' started by newtomac123, Mar 13, 2014.

  1. newtomac123, Mar 13, 2014
    Last edited: Mar 15, 2014

    newtomac123 macrumors newbie

    Joined:
    Jan 8, 2014
    #1
    Pre-Xcode update, I didn't have this issue, but since I've updated my Xcode I'm having a problem with the navigation bar. I've placed the code in AppDelagate.m multiple different ways (did a little research on line), but I'm not getting the correct response.

    I've tried each of these:
    Code:
     
    
    1. [[UINavigationBar appearance] setBarTintColor:[UIColor yellowColor]];
    
    2. #define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
    
    [[UINavigationBar appearance] setBarTintColor:UIColorFromRGB(0x067AB5)];
    
    Nothing changes in the navigation bar of the app (doesn't change to blue or yellow with each respective code).

    I've been putting appdelgate for sometime without any issues (working fine pre update). Anyone having the same problem? Or can offer a simple solution?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    Are we talking Xcode 5.1 update here?

    Also, where in your app delegate have you placed this code snippet?
     
  3. newtomac123 thread starter macrumors newbie

    Joined:
    Jan 8, 2014

Share This Page