if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)) {
tabBarItemImage = [tabBarItemImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
tabBarItemSeletedImage = [tabBarItemSeletedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
tabBarItem = [[UITabBarItem alloc] initWithTitle:@"会员" image:tabBarItemImage selectedImage:tabBarItemSeletedImage];
[self resetTabbarItemTextColor:tabBarItem];
}
//修改tab的字体颜色。
- (void) resetTabbarItemTextColor:(UITabBarItem *) tabBarItem{
[tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor], UITextAttributeTextColor,
nil] forState:UIControlStateNormal];
[tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
[UIColor whiteColor], UITextAttributeTextColor,
nil] forState:UIControlStateHighlighted];
}
//NavigationBar与UIViewController 重叠的问题。
if( ([[[UIDevice currentDevice] systemVersion] doubleValue]>=7.0)) {
self.edgesForExtendedLayout= UIRectEdgeNone;
}