我想知道是否有人可以协助我,我正在尝试调整我的应用程序,以便它可以识别iPhone 5的全屏幕,但它现在可以在其他屏幕上正常工作,但是我的初始屏幕我遇到了问题,因为我淡入淡出顶部和底部的酒吧,顶部工作正常,但底部没有,任何人都可以帮助我的代码来帮助我在iPhone 5上工作吗?至于现在,酒吧是对iPhone 5的屏幕上太高,不淡出了人们的看法...iPhone 5隐藏在视图中的酒吧布局
- (void)barwillGo
{
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
[UIView animateWithDuration:0.5f
delay:0.0f
options:UIViewAnimationCurveEaseIn
animations:^{
CGRect top = CGRectMake(0, -51, 320, 50);
if (CGRectEqualToRect(topBar.frame,top))
{
[topBar setFrame:CGRectMake(0, 0, 320, 50)];
[bottomBar setFrame:CGRectMake(0, 430, 320, 50)];
}
else {
[topBar setFrame:CGRectMake(0, -51, 320, 50)];
[bottomBar setFrame:CGRectMake(0, 481, 320, 50)];
}
}
completion:nil];
}
else {
[UIView animateWithDuration:0.5f
delay:0.0f
options:UIViewAnimationCurveEaseIn
animations:^{
CGRect top = CGRectMake(0, -51, 768, 50);
if (CGRectEqualToRect(topBar.frame,top))
{
[topBar setFrame:CGRectMake(0, 0, 768, 50)];
[bottomBar setFrame:CGRectMake(0, 974, 768, 50)];
}
else {
[topBar setFrame:CGRectMake(0, -51, 768, 50)];
[bottomBar setFrame:CGRectMake(0, 1025, 768, 50)];
}
}
completion:nil];
}
}
精湛,感谢你,是一个很好的解决方案 - 真的再次感谢你帮我,谢谢:) – user1695971 2013-03-16 20:58:35