所以我一直试图通过FB连接将FB与我的iPhone应用程序集成。但是,在使用教程(http://www.mobisoftinfotech.com/blog/iphone/iphone-fbconnect-facebook-connect-tutorial/)后,似乎在FBDialog框被调用时,它会弹出到屏幕上几个秒,然后消失。我不确定发生了什么,因为它完美地模拟了模拟器中的工作。我有一个iPhone 4设备。这里是下面我的代码:iPhone FBConnectDialog框消失
(无效)viewDidLoad中{ [超级viewDidLoad中];
session = [[FBSession sessionForApplication:@“MYAPIKEY”secret:@“MYSECRET”delegate:self] retain];我们可以使用FBLoginButton * button = [[[FBLoginButton alloc] init] autorelease];
[button setFrame:CGRectMake(100,100,100,50)];
[self.view addSubview:button];
}
没问题,user487588。这就是你将从错误中学习的方式。但是,下次记住这一点。 :) – 2010-11-06 12:05:22