#pragma make-------設(shè)置導(dǎo)航欄-----
- (void)NavigationColor{
//狀態(tài)欄顏色? ? 需要在info.plist 文件中View controller-based status bar appearance
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;
self.title = @"禮物說";
//導(dǎo)航欄顏色
self.navigationController.navigationBar.barTintColor = [UIColor redColor];
//導(dǎo)航欄字體顏色
[self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:23 weight:15],NSForegroundColorAttributeName:[UIColor whiteColor]}];
//導(dǎo)航欄按鈕顏色
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
//導(dǎo)航欄左側(cè)按鈕
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks target:self action:nil]autorelease];
//右側(cè)按鈕
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemSearch target:self action:nil]autorelease];
}