我有一個UIViewController,它有一個UIButton。從TTThumbsViewController返回後,UIButton向上移動
我放入UIButton的事件是加載一個新的TTThumbsViewController PhotoThumbnail。
PhotoThumbnail *photoThumbnail = [[PhotoThumbnail alloc] initWithNibName:@"PhotoThumbnail" bundle:nil];
[self.navigationController pushViewController:photoThumbnail animated:YES];
點擊UIButton後,PhotoThumbnail完美載入。
問題:當我點擊Back按鈕時,視圖返回UIButton的位置,但UIButton的位置向上移動!
任何想法是什麼導致這個UIButton移動?
注意:UIViewController是UITabBarController的一部分,它最終被添加到窗口中。
的tabBarController被添加到窗口
[window addSubview:tabBarController.view];
希望我在這裏我的情況解釋清楚。