我有一個奇怪的問題。在使用標準SPLoginViewController登錄後,我保存了用戶名和憑證。之後,我再次啓動,我嘗試撥打:可以使用attemptLoginWithUserName登錄:在模擬器上,但不能在iPhone上
[SPSession sharedSession] attemptLoginWithUserName: existingCredential:
在iOS模擬器(的iOS 6.0),它工作得很好。在我的iPhone上(iOS 6.0.1),它沒有。在我調用attemptLogin方法後,SPSession正好在五分鐘內登錄。當我將應用程序放在後臺時,SPSession也會登錄。
有沒有人知道更多關於這個,也許一個解決方案?
感謝