![](/img/trans.png)
[英]Swift defer function doesn't seem to work with textField delegate shouldChangeCharactersIn
[英]Facebook post function doesn't seem to work
我已经在我的应用程序中实现了Facebook发布功能,您可以在其中将您的位置坐标发布到Facebook上。 它在iOS模拟器中可以正常工作,但是当我在真实设备(iPhone 5S)上尝试使用时,邮箱为空,帖子按钮显示为灰色。 有任何想法吗?
这是我的代码:
SLComposeViewController *controllerFB = [[SLComposeViewController alloc] init];
controllerFB = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
NSString *theLocation = [NSString stringWithFormat:@"%f,%f", self.locationManager.location.coordinate.latitude, self.locationManager.location.coordinate.longitude];
[controllerFB setInitialText: theLocation];
[self presentViewController:controllerFB animated:YES completion:NULL];
尝试在iPhone上的“设置”应用中登录Facebook
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.