草庐IT

viceroytrace

全部标签

authentication - 使用 Swift 进行游戏中心身份验证

使用以下代码,GKLocalPlayer().authenticated变量始终为false。一旦代码运行到“Userstillnotauthenticated”,您就可以下载GameCenter数据。这是错误还是以下代码的问题?funcnotificationReceived(){println("GKPlayerAuthenticationDidChangeNotificationName-AuthenticationStatus:\(self.localPlayer.authenticated)")}//MARK:2AuthenticatethePlayerfuncauthent

ios - 使用 Xcode 在 iOS 上实现多点连接

广告和浏览的设备。尝试建立连接时出现问题。funcsession(_session:MCSession,peerpeerID:MCPeerID,didChangestate:MCSessionState){}尝试连接时正常工作,但几秒钟后,它再次调用MCSessionState==.notConnected。尝试了WiFi、BT以及两者之间的所有组合...刚刚添加:NSAppTransportSecurityNSAllowsArbitraryLoadsNSTemporaryExceptionRequiresForwardSecrecy没有太大帮助...仍然进入控制台(不过只是在iOS1