我正在更新以ios 6上传到AppStore的应用程序,以适应IOS 7 SDK,我有一个UIViewController的问题我看到UIViewControllers在另一个上面闪烁一秒然后我可以看到第二个就像我应该的那样,我添加了这张照片:
ViewController中间的橙色来自前一个,它只发生在IOS 7上 推送到下一个视图控制器的代码是:` - (IBAction)goButtonPressed { NSString * UsersListViewControllerXIB = [[NSString alloc] init]; if(sing.iPhoneType == 5){ UsersListViewControllerXIB = @" UsersListViewController5&#34 ;; } 其他{ UsersListViewControllerXIB = @" UsersListViewController&#34 ;;
}
// sanity check
if (toAge < fromAge)
{
self.alert.title = @"שגיאה";
self.alert.message = [NSString stringWithFormat:@"\"עד גיל\": %d - לא יכול להיות קטן מ %d", toAge, fromAge];
[self.alert show];
return;
}
NSLog(@"goButtonPressed: area:%d from:%d to:%d ", areaCode, fromAge, toAge);
UsersListViewController *usersListViewController = [[UsersListViewController alloc] initWithNibName:UsersListViewControllerXIB bundle:[NSBundle mainBundle]];
// save new defaults value:
[[NSUserDefaults standardUserDefaults] setInteger:toAge forKey:@"OnlineAgeMax"];
[[NSUserDefaults standardUserDefaults] setInteger:fromAge forKey:@"OnlineAgeMin"];
[[NSUserDefaults standardUserDefaults] setInteger:areaCode forKey:@"OnlineArea"];
// call synchronize to save changes to disk now
[[NSUserDefaults standardUserDefaults] synchronize];
usersListViewController.areaCode = areaCode;
usersListViewController.fromAge = fromAge;
usersListViewController.toAge = toAge;
usersListViewController.genderCode = [self generateGenderCodeAccordingToUserPref];
NSLog(@"genderCode = %@", usersListViewController.genderCode);
usersListViewController.userGuid = [[NSUserDefaults standardUserDefaults]
objectForKey:@"userGuid"];
usersListViewController.listText = @"מחוברים";
self.title = @"הגדרות מחוברים";
[self.navigationController pushViewController:usersListViewController animated:YES];
}`
答案 0 :(得分:1)
最有可能的是:你的第二个(推送的)viewController的backgroundColor有alpha = 0([UIColor clearColor]
)