Re: [問題] xcode5 ios facebook登入問題
推完文又看到StackOverflow上其實發問的人自己就有解答了...
"That helps. I think my appears to be from clicking the IBAction more than once
before the session could be opened. If I give it time, it seems to work fine.
I included a spinner to signal that"
他說連點太多次的話 (跟你的情況一樣), 在Facbook還沒來得及開啟session之前
Dictionary就被賦值了 (還沒有資料) 所以會 crash
解決方法應該就多加幾個判斷吧 XD,
希望有幫助到你
※ 引述《issuemylove (skill)》之銘言:
: 各位大大好
: 我依照 FB 官網的 iOS SDK Tutorial 實作
: https://developers.facebook.com/docs/ios/ios-sdk-tutorial/authenticate/
: 我做到第二階段"Personalize" (有五個階段)
: 後來遇到了跟這一篇 stackoverflow 提問者相同的 error message
: http://stackoverflow.com/questions/18474824/
: 我是在按下登入按鈕之後
: 要權限的那一頁按取消之後再多按(連按)很多次登入按鈕
: 就會 crash
: 請問有大大知道這是怎樣的問題嗎? 謝謝!
: error message:
: *** Terminating app due to uncaught exception 'NSInvalidArgumentException',
: reason: '*** setObjectForKey: object cannot be nil (key: 0_auth_logger_id)'
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.135.254.189
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 3 篇):
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章