我的应用程序应该只是风景,我在构建iOS 6及更早版本时没有遇到任何问题.现在使用iOS 7,它根本不会旋转.
在我的应用设置中,我将其设置为仅左/右横向.在我的视图控制器中,我使用以下内容:
- (NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationLandscapeLeft | UIInterfaceOrientationLandscapeRight;
}
Run Code Online (Sandbox Code Playgroud)
我也习惯使用它,现在已弃用:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
return UIInterfaceOrientationIsLandscape(orientation);
}
Run Code Online (Sandbox Code Playgroud)
新的似乎是shouldAutorotate,但使用此崩溃了我的应用程序.任何想法都将受到赞赏,因为我的应用程序被迫在我的iPad和模拟器中画像.谢谢!
如何在iOS中发送和接收网络MIDI数据?我能够使用bonjour解析服务器并将服务应用于MIDI连接,但我不知道从那里去哪里.文档似乎缺乏,网上的信息也不多.