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

Present系统原生分享框架 不兼容 , 选择短信Message的时候,导航栏cancel按钮被遮盖 #184

Open
shineFoyMylove opened this issue Jul 19, 2018 · 2 comments

Comments

@shineFoyMylove
Copy link

shineFoyMylove commented Jul 19, 2018

UIActivityViewController` *actContr = [[UIActivityViewController alloc] initWithActivityItems:@[screenImage]  applicationActivities:nil];
[self presentViewController:actContr animated:YES completion:nil];

系统原生分享,选择短信Message,Present MFMessageComposeViewController 的时候,导航栏被遮盖,导致 cancel 按钮无法点击 dismiss。
找了很久,发现当屏蔽 如下的 method 交换,恢复正常,求这个问题该如何解决?

@implementation UINavigationController (FDFullscreenPopGesture)
+ (void)load{
        SEL originalSelector = @selector(pushViewController:animated:);
        SEL swizzledSelector = @selector(fd_pushViewController:animated:);
        ........
}
@three1026
Copy link

MFMessageComposeViewController *messageComposeVC = [[MFMessageComposeViewController alloc] init];
UIViewController *rootViewController = messageComposeVC.viewControllers.firstObject;
rootViewController.fd_prefersNavigationBarHidden = YES;

@kaioser
Copy link

kaioser commented Sep 26, 2018

试了一下午,原来是这个库的问题!!

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

3 participants