Back button is not visible in iOS 7

后端 未结 3 1282
一向
一向 2020-12-31 15:28

I have some weird trouble about iOS 7. I have an UINavigationBar in my app and it works perfect for iOS 6;

-- IOS 6 --

3条回答
  •  一向
    一向 (楼主)
    2020-12-31 15:38

    By the way, if you have to keep support ios 6 version like me, use that;

       if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1)
            {
                // My iOS 6 back button background 
                self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:39.0f/255.0f green:184.0f/255.0f blue:199.0f/255.0f alpha:1.0];
            }
            else
            {
                self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
            }
    

提交回复
热议问题