Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

presentViewController MFMessageComposeViewController整个导航栏都为空白了 #14

Closed
CocoaDebug opened this issue Jun 19, 2015 · 8 comments

Comments

@CocoaDebug
Copy link

大大, 我发现FDFullscreenPopGesture一个bug, 就是导入后当我要present MFMessageComposeViewController时, 以外发现发短信页面的导航栏全是白的, 原来的title和cancel按钮都不见了...求指点 QQ723661989 谢谢!!

@dylanNew
Copy link

dylanNew commented Jul 1, 2015

这个应该在 MFMessageComposeViewController 的时候禁用 该功能。同时注意 设置 MFMessageComposeViewController的fd_viewControllerBasedNavigationBarAppearanceEnabled 为NO 是不起作用的。
一个临时的解决方法,

  • (void)fd_pushViewController:(UIViewController *)viewController animated:(BOOL)animated
    {
    //添加这句
    if ([self isKindOfClass:[MFMessageComposeViewController class]]) {
    [self fd_pushViewController:viewController animated:animated];
    return;
    }
    ......
    }

@xiafb
Copy link

xiafb commented Aug 3, 2015

请问这个问题解决了吗,我这里同样的问题还是存在。

@hstdt
Copy link

hstdt commented Sep 9, 2015

@wuminglan 的方法可行
稍微优化了一下,就不用多导入类了
[self isKindOfClass:NSClassFromString(@"MFMessageComposeViewController")]

@rocksuger
Copy link

@wuminglan @hstdt 我用你这个方法,直接奔溃掉了!崩溃信息是*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing the same view controller instance more than once is not supported (<CKSMSComposeController: 0x1b89e600>)',请问你的是怎么解决这个问题的

@likers
Copy link

likers commented Feb 16, 2016

@sunlymaster 你应该把过滤的代码放在(void)fd_pushViewController:(UIViewController *)viewController animated:(BOOL)animated 的最开始,这样就会直接return

@xxdzyyh
Copy link

xxdzyyh commented Jul 16, 2016

if ([viewController isKindOfClass:NSClassFromString(@"CKSMSComposeController")]) {

    [self fd_pushViewController:viewController animated:animated];

    return;
}

@caoway
Copy link

caoway commented Dec 13, 2016

ios10 下面这个解决方法也没用了 还有什么其他解决办法吗

@likers
Copy link

likers commented Dec 13, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants