简单设置 navgationbar(导航栏) 的 title 字体跟颜色

                NSDictionary *navbarTitleTextAttributes = [NSDictionary dictionaryWithObjectsAndKeys:
                                                                                                     [UIColor whiteColor],UITextAttributeTextColor,
                                                                                                     [UIColor blackColor], UITextAttributeTextShadowColor,
                                                                                                     [UIFont fontWithName:CHINESE_FONT_NAME size:20.0f],UITextAttributeFont,
                                                                                                     [NSValue valueWithUIOffset:UIOffsetMake(-1, 0)], UITextAttributeTextShadowOffset, nil];
                [[UINavigationBar appearance] setTitleTextAttributes:navbarTitleTextAttributes];

 

posted @ 2013-12-09 20:09  yingkong1987  阅读(851)  评论(0编辑  收藏  举报