简体   繁体   English

如何更改iOS Notification Center的拉动方向?

[英]How to change iOS Notification Center pulling direction?

I have set the root viewer's direction to upside down. 我已将根查看器的方向设置为上下颠倒。 When I enter the app, I can pull out the notification center from the top (near the home button). 进入应用程序后,我可以从顶部(靠近主屏幕按钮)拉出通知中心。 But after I pressed home button, then went back to my app, the notification center was pulled out from the bottom, just like the view's direction was not changed. 但是,当我按下主页按钮然后返回到我的应用程序后,通知中心从底部拉出,就像视图的方向没有改变一样。

I'm wondering how to change iOS Notification Center pulling direction? 我想知道如何更改iOS通知中心的拉动方向?

I'm using Xcode 4.6 and testing on iPhone 5 6.02 我正在使用Xcode 4.6并在iPhone 5 6.02上进行测试

-(NSUInteger)supportedInterfaceOrientations {
    return UIInterfaceOrientationMaskPortraitUpsideDown;
}

- (BOOL)shouldAutorotate {
    return YES;
}

The UI for notifications is stupid, I agree. 我同意,通知的用户界面很愚蠢。 It should be a two-finger swipe from the top (or right) edge to get it (like in Mountain Lion with a track-pad). 应该从顶部(或右侧)边缘用两根手指轻扫才能获得它(就像在带触控板的Mountain Lion中一样)。 However, it's a system-owned gesture so you can't really get rid of it, and even if you find a workaround there's no guarantee it will keep working on different OS releases. 但是,这是系统拥有的手势,因此您无法真正摆脱它,即使找到解决方法,也无法保证它会继续在不同的OS版本上运行。 I'm not sure, but Apple may even reject your app if you try to alter system behaviour. 我不确定,但是如果您尝试更改系统行为,Apple甚至可能拒绝您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM