在iOS Developer Portal上的证书,标识符和配置文件中,创建证书以制作VOIP服务证书时有一个新选项:

我在iOS上使用VOIP应用程序,之前从未见过这个选项.有谁知道这个证书何时是必要的以及它将用于什么?
我想知道是否有办法以编程方式更改系统偏好设置中设置的当前显示模式?具体来说,我希望能够在新的Retina MacBook Pro上检测和切换5种Retina显示模式.
我仔细查看了NSUserDefaults NSGlobalDomain如何在"系统偏好设置"中找到如何更改当前显示模式,并且根本无法找到与显示有关的任何内容.
谢谢.
我正在使用Cocos2d-iPhone构建游戏,当我更新到iOS 6时,我注意到Apple改变了游戏中心身份验证的方式,authenticateHandler而不是使用authenticateWithCompletionHandler.
我添加了新的身份验证方法,但如果玩家尚未登录游戏中心,游戏现在会崩溃.验证用户是否已登录是没有问题的.
这是我的代码:
if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0"))
{
GKLocalPlayer *localPlayer = [GKLocalPlayer localPlayer];
localPlayer.authenticateHandler = ^(UIViewController *viewController, NSError *error)
{
if (viewController != nil)
{
AppController *appDelegate = (AppController*)[UIApplication sharedApplication].delegate;
[delegate.viewController presentViewController:viewController animated:YES completion:nil];
}
else if (localPlayer.isAuthenticated)
{
NSLog(@"Player authenticated");
}
else
{
NSLog(@"Player authentication failed");
}
};
}
Run Code Online (Sandbox Code Playgroud)
在尝试呈现Game Center viewController时似乎崩溃了,即使我使用完全相同的代码来呈现GKTurnBasedMatchmakerViewController没有问题.
任何帮助将非常感激.
编辑:以下是崩溃引发的异常:
Uncaught Exception UIApplicationInvalidInterfaceOrientation: Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES
在Xcode 5中,预定义的代码片段位于/Applications/Xcode.app/Contents/PlugIns/IDECodeSnippetLibrary.ideplugin/Contents/Resources/SystemCodeSnippets.codesnippets.
在Xcode 6中IDECodeSnippetLibrary.ideplugin不再存在/Applications/Xcode.app/Contents/PlugIns/.
Xcode 6的内置代码片段位于何处?
我不再在Xcode控制台中看到"无法同时满足约束"警告.
我知道我有不满意的自动布局限制,因为我添加了UIViewAlertForUnsatisfiableConstraints符号断点,它偶尔会在那里打破.
我想知道是否存在特定的构建设置或我意外禁用的控制此日志记录行为的内容.
xcode ×2
autolayout ×1
cocoa ×1
debugging ×1
game-center ×1
ios ×1
ios6 ×1
macos ×1
voip ×1
xcode6 ×1