CGRect frame = bottomView.frame;
frame.origin.y = [UIScreen mainScreen].bounds.size.height + 88;
bottomView.frame = frame;
NSLog(@"bottom view frame is %f", bottomView.frame.origin.y);
[UIView commitAnimations];
[self bottomButtonsCustomLoad];
我也有一行
frame.origin.y = [UIScreen mainScreen].bounds.size.height + 88;
嵌套在&#34;如果&#34;语句和日志579应该显示视图但是if语句中的那个uiview是不可见的它记录579但是它不在那里它似乎是在动画之前它开始的窗口之下< / p>
答案 0 :(得分:0)
如果您将y原点设置为屏幕高度,那么您的视图看不见是正常的,因为它不在屏幕之外(在底部)。
记住点(0,0)是左上角。
答案 1 :(得分:0)
您显示的代码将窗口置于屏幕下边缘下方88点处,因此它似乎没有显示。如果您认为视图位于顶部边缘下方88点,则应为
frame.origin.y = 88