![](/img/trans.png)
[英]Debugging the EXEC_BAD_ACCESS on Iphone using Performance Tool, Allocations
[英]iPhone SDK FBConnect webcore decodeGIFFrame exec_bad_access
- (void)apiDialogFeedUser {
SBJSON *jsonWriter = [[SBJSON new] autorelease];
NSArray* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:@"test",@"name",@"http://test.co.in",@"link", nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"test", @"name",
@"test", @"caption",
@"test", @"description",
@"http://test.co.in", @"link",
@"http://test.co.in/images/b_freequote.jpg", @"picture",
actionLinksStr, @"actions",
nil];
Demo1AppDelegate *delegate = (Demo1AppDelegate *)[[UIApplication sharedApplication] delegate];
[[delegate facebook] dialog:@"feed"
andParams:params andDelegate:self];
}
我正在使用上面的代碼發布到Facebook牆。 但是當對話框打開后,它突然拋出了exec_bad_access。 它指向decodeGIFFrame。 我不知道那是什么 任何人都可以提出問題所在嗎? 希望大家理解我的問題。
提前致謝。
更新:
我發現問題出在Facebook AppId上。 當我嘗試使用Hackbook id時,此問題消失了。 但是我不知道AppId中的哪些設置導致了此問題。 任何想法?
我在回答我自己的問題。 當我通過developer.facebook.com更改應用程序的默認徽標時,它解決了我的問題。 它確實有效! 希望這會幫助到別人。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.