forkingdog / FDFullscreenPopGesture

A UINavigationController's category to enable fullscreen pop gesture with iOS7+ system style.
MIT License
5.89k stars 1.15k forks source link

presentViewController MFMessageComposeViewController后取消按钮不见了 #12

Open singer1026 opened 9 years ago

singer1026 commented 9 years ago

用了这个返回手势,调用系统自带的MessageUI框架发短信等操作 弹出来的控制器 取消按钮都没了 image

chen570075003 commented 9 years ago

navtitle 1、push,返回,再push,改变NavigationBar Title,出现重叠。

CocoaDebug commented 9 years ago

我也是 ,导航栏的title和取消按钮 都不见了....

CocoaDebug commented 9 years ago

我也是 ,发短信界面的导航栏的title和取消按钮 都不见了....

liliang1203 commented 9 years ago

同样出现NavigationBar不显示取消按钮的情况,使用的sharesdk 短信分享是出现的(:з」∠) screen shot 2015-07-06 at 4 25 21

xiafb commented 9 years ago

同上,求指点!谢谢!

hongdong commented 9 years ago

同求,为什么木有人解答

chen570075003 commented 9 years ago

在提供的方法源码中找到

- (void)fd_pushViewController:(UIViewController *)viewController animated:(BOOL)animated

添加代码

if ([self isKindOfClass:[MFMessageComposeViewController class]]) {
        [self fd_pushViewController:viewController animated:animated];
        return;
    }

如同上面的MFMessageComposeViewController 选择过滤的视图控制器,即可避免出现这个问题

hongdong commented 9 years ago

这个解决方案,点击取消回到APP后,手势就失灵了。

hrstruggle1 commented 9 years ago

[[[self.controller viewControllers] lastObject] navigationItem].rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(dismissModal:)];

/// rightBarButtonItem action.

JLLJHD commented 7 years ago

@hongdong 问题解决了吗?

raymond-liao commented 6 years ago

swift4.1, iOS 11.3.1 按照@chen570075003的方法是可以的:

在提供的方法源码中找到

- (void)fd_pushViewController:(UIViewController *)viewController animated:(BOOL)animated
添加代码

if ([self isKindOfClass:[MFMessageComposeViewController class]]) {
        [self fd_pushViewController:viewController animated:animated];
        return;
    }
如同上面的MFMessageComposeViewController 选择过滤的视图控制器,即可避免出现这个问题

这段代码最好加在方法的最前面