Slcomposeviewcontroller在几秒钟后自动关闭iOS 8

Slcomposeviewcontroller在几秒钟后自动关闭iOS 8,ios,Ios,我使用这段代码(在IOS 7中非常有效) 但是,当SLComposer视图出现时,1-2秒后在模拟器和设备中消失,没有任何输入命令。。。 正确的代码是什么 我发布照片的另一种方式是: NSString *client_id = @"123456789012345"; (The same of .Plist) fbGraph = [[FbGraph alloc] initWithFbClientID:client_id]; [fbGraph authenticateUserWithCallback

我使用这段代码(在IOS 7中非常有效)

但是,当SLComposer视图出现时,1-2秒后在模拟器和设备中消失,没有任何输入命令。。。 正确的代码是什么

我发布照片的另一种方式是:

NSString *client_id = @"123456789012345"; (The same of .Plist)
fbGraph = [[FbGraph alloc] initWithFbClientID:client_id];
[fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(postInAppFacebook) andExtendedPermissions:@"user_photos,user_videos,publish_stream,offline_access" andSuperView:self.view];

NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:3];
FbGraphFile *graph_file = [[FbGraphFile alloc] initWithImage:ScreenshotForShare];
[variables setObject:graph_file forKey:@"file"];
[variables setObject:[NSString stringWithFormat:@"%@",annotazioni.text] forKey:@"message"];
[fbGraph doGraphPost:@"me/photos" withPostVars:variables];
if (TwitterShare == YES) {
    [self ShareOnTwitter];
}else{
    [self dismissViewControllerAnimated:YES completion:nil];
}
但只有在IOS 8中我才收到错误191。。。在IOS 7上,所有操作都非常完美,照片正确地发布在我的日记中。 帮帮我,我7天后找不到解决办法。。。
提前感谢

您的代码对我来说很好。您如何在IOS 8中声明mySLComposerSheet?我用framework在.h中声明mySLComposerSheet,为什么?您已在其他职位和工作中申报?:)我想确保你宣布它很强大(我就是这么做的)。你应该发布你收到的实际错误消息。我没有收到任何错误,因为我的作曲家在自动关闭时显示我的下方视图,但什么也没有发生。这是我的问题:(在IOS 8中,“我收到错误191”是什么意思?
NSString *client_id = @"123456789012345"; (The same of .Plist)
fbGraph = [[FbGraph alloc] initWithFbClientID:client_id];
[fbGraph authenticateUserWithCallbackObject:self andSelector:@selector(postInAppFacebook) andExtendedPermissions:@"user_photos,user_videos,publish_stream,offline_access" andSuperView:self.view];

NSMutableDictionary *variables = [NSMutableDictionary dictionaryWithCapacity:3];
FbGraphFile *graph_file = [[FbGraphFile alloc] initWithImage:ScreenshotForShare];
[variables setObject:graph_file forKey:@"file"];
[variables setObject:[NSString stringWithFormat:@"%@",annotazioni.text] forKey:@"message"];
[fbGraph doGraphPost:@"me/photos" withPostVars:variables];
if (TwitterShare == YES) {
    [self ShareOnTwitter];
}else{
    [self dismissViewControllerAnimated:YES completion:nil];
}