Недавно я обновил свой проект xcode для работы с iOS 7, но я столкнулся с большой проблемой. Поскольку у всего моего приложения есть только одно фоновое изображение (добавлено UIImageView в ключевое окно), и все представления прозрачны, я сталкиваюсь с проблемой при нажатии UIViewController, потому что нажатый контроллер просмотра перекрывает предыдущий вид (вы можете увидеть его на картинке здесь: http://grab.by/qp0k). Я могу предсказать, что это связано с тем, что в iOS 7 был изменен push-переход, поскольку теперь он скользит на половину экрана. Может быть, кто-нибудь знает, как решить эту проблему?
Вот как я устанавливаю свои ключевые окна
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UIImageView *background = [[UIImageView alloc]initWithFrame:[[UIScreen mainScreen] bounds]];
background.image = [UIImage imageNamed:@"background.png"];
UINavigationController *navi = [[UINavigationController alloc]initWithRootViewController:self.viewController];
self.window.rootViewController = navi;
[self.window makeKeyAndVisible];
Впоследствии, когда пользователь нажимает кнопку "начать тренировку", я всегда нажимаю свой следующий вид:
workoutView *w = [[workoutView alloc]initWithNibName:@"workoutView" bundle:nil];
[self.navigationController pushViewController:w animated:YES];