iOS 新特性总结(since iOS6) iOS 6 1.废除viewDidUnLoad 收到内存警告须要到didReceiveMemoryWarning中处理 [小技巧] -(void)didReceiveMemoryWarning { [super didReceiveMemoryWarning];//即使没有显示在window上.也不会自己主动的将self.view释放. // Add code to clean up any of your own resources that are
可以选择是使用自定制的还是系统的,如果使用自定制的,就使用以下方法即可隐藏系统的uitabbarButton,从而使item恢复正确 //隐藏UITabBarButton -(void)viewWillLayoutSubviews{ [super viewWillLayoutSubviews]; for (UIView *child in self.tabBar.subviews) { if ([child isKindOfClass:NSClassFromString(@"UITabBarBu