if (IS_IOS7()) {
            
            //  NavigationBar 颜色
            [[UINavigationBar appearance] setBarTintColor:HexColor(0xffffff)];
            
        } else {
            
            self.navigationController.navigationBar.tintColor = HexColor(0xffffff);
            //  状态栏颜色
            [[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleBlackOpaque animated: YES];
        }

设置按钮

UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithTitle: @"XXXX" style: UIBarButtonItemStylePlain target: self action: @selector(XXXX)];
    self.navigationItem.rightBarButtonItem = rightItem;

posted on 2014-06-03 21:22  М80メ  阅读(267)  评论(0编辑  收藏  举报