FBLoginView:单击登录按钮后抛出错误

时间:2013-02-27 09:18:19

标签: iphone objective-c facebook loginview

我有一个堆栈跟踪,但不知道出了什么问题,控制台屏幕上没有明显的输出。

> #0    0x01e1f09b in objc_msgSend ()
#1  0x00096ebf in -[FBLoginView informDelegate:] at /Users/jacl/src/release/ios-sdk/src/FBLoginView.m:292
#2  0x00097104 in -[FBLoginView observeValueForKeyPath:ofObject:change:context:] at /Users/jacl/src/release/ios-sdk/src/FBLoginView.m:340
#3  0x01847ce7 in NSKeyValueNotifyObserver ()
#4  0x018613f4 in NSKeyValueDidChange ()
#5  0x01816630 in -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] ()
#6  0x018c335a in _NSSetIntValueAndNotify ()
#7  0x0007c9ef in -[FBSession transitionToState:andUpdateToken:andExpirationDate:shouldCache:loginType:] at /Users/jacl/src/release/ios-sdk/src/FBSession.m:767
#8  0x0007b792 in -[FBSession openWithBehavior:completionHandler:] at /Users/jacl/src/release/ios-sdk/src/FBSession.m:350
#9  0x0007f2a6 in +[FBSession openActiveSessionWithPermissions:allowLoginUI:allowSystemAccount:isRead:defaultAudience:completionHandler:] at /Users/jacl/src/release/ios-sdk/src/FBSession.m:1558
#10 0x0007bff1 in +[FBSession openActiveSessionWithPublishPermissions:defaultAudience:allowLoginUI:completionHandler:] at /Users/jacl/src/release/ios-sdk/src/FBSession.m:545
#11 0x000973f9 in -[FBLoginView buttonPressed:] at /Users/jacl/src/release/ios-sdk/src/FBLoginView.m:391

之前有人看到此错误吗?当我单击FBLoginView中的登录按钮

时会发生这种情况

1 个答案:

答案 0 :(得分:1)

您的问题可能是在将消息发送给它之前取消分配FBLoginView对象。在您的方案中启用“Zombie Objects”以获得更清晰的输出。

如果您想要更详细的答案,请将代码粘贴到使用FBLoginView的位置。