Comments (8)
这个应该在 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;
}
......
}
from fdfullscreenpopgesture.
请问这个问题解决了吗,我这里同样的问题还是存在。
from fdfullscreenpopgesture.
@wuminglan 的方法可行
稍微优化了一下,就不用多导入类了
[self isKindOfClass:NSClassFromString(@"MFMessageComposeViewController")]
from fdfullscreenpopgesture.
@wuminglan @hstdt 我用你这个方法,直接奔溃掉了!崩溃信息是*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Pushing the same view controller instance more than once is not supported (<CKSMSComposeController: 0x1b89e600>)',请问你的是怎么解决这个问题的
from fdfullscreenpopgesture.
@sunlymaster 你应该把过滤的代码放在(void)fd_pushViewController:(UIViewController *)viewController animated:(BOOL)animated
的最开始,这样就会直接return
from fdfullscreenpopgesture.
if ([viewController isKindOfClass:NSClassFromString(@"CKSMSComposeController")]) {
[self fd_pushViewController:viewController animated:animated];
return;
}
from fdfullscreenpopgesture.
ios10 下面这个解决方法也没用了 还有什么其他解决办法吗
from fdfullscreenpopgesture.
from fdfullscreenpopgesture.
Related Issues (20)
- 控制只左侧右滑返回
- 返回手势执行的时候,怎么禁止scrollView的上下滑动?
- 请问下如何在BaseNavigationController里面监听右滑返回完成事件?
- 是不是很久没维护了 , 在ios12上有bug呢?
- 有遇到此问题的吗 HOT 2
- setViewControllers:animated:侧滑设置没生效
- 这个全屏侧滑与界面上的左滑手势冲突了的问题你们怎么解决的?
- 设置 self.navigationController.hidesBarsOnSwipe 时,第二次push会崩溃
- 如何监控到侧滑返回事件,正常的方法好像无效 HOT 1
- iOS 13 cell侧滑删除按钮出现,向右滑cell和侧滑冲突
- 如何实现监听返回事件
- 一个好建议 建议写scrollerview的分类
- fd_prefersNavigationBarHidden BUG
- iOS 14设置 self.fd_prefersNavigationBarHidden = YES; 导航栏间出现动画突兀的问题 HOT 2
- 绑定storyboard的Controller就不能隐藏
- cocoapod拉取1.1的代码跟GitHub上面下载1.1的代码不一样
- 能不能返回指定界面
- 在swift中使用 fd_prefersNavigationBarHidden 和 fd_interactivePopDisabled
- fd_interactivePopMaxAllowedInitialDistanceToLeftEdge 可以给1.1重新打一个tag吗,通过cocoapods集成进来的代码不是最新的
- 全局返回与WkWebview冲突 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fdfullscreenpopgesture.