我有一个 UIViewController,里面有一个 UIButton。
我在 UIButton 中放置的事件是加载一个新的 TTThumbsViewController PhotoThumbnail。
PhotoThumbnail *photoThumbnail = [[PhotoThumbnail alloc] initWithNibName:@"PhotoThumbnail" bundle:nil];
[self.navigationController pushViewController:photoThumbnail animated:YES];
单击 UIButton 后,PhotoThumbnail 完美加载。
问题:当我点击后退按钮时,视图返回到 UIButton 的位置,但 UIButton 的位置向上移动了!
知道是什么导致这个 UIButton 移动吗?
注意:UIViewController 是 UITabBarController 的一部分,最终添加到窗口中。
tabBarController 被添加到窗口中
[window addSubview:tabBarController.view];
希望我在这里对我的情况的解释很清楚。