-[SWRevealView layoutSublayersOfLayer:] 中的断言失败:
Assertion failure in -[SWRevealView layoutSublayersOfLayer:]
*与建议问题不同的是,我没有直接使用containsString:,而是需要找到它的使用位置。
在 iOs 7 我收到一个错误:
2015-09-08 20:23:06.577 MyProject[2161:607] *** Assertion failure in -[SWRevealView layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2935.137/UIView.m:8794
2015-09-08 20:23:06.580 MyProject[2161:607] -[__NSCFString containsString:]: unrecognized selector sent to instance 0x7bf6c1b0
libc++abi.dylib: terminate_handler unexpectedly threw an exception
我知道 containsString: 只出现在 iOs 8 中,但我确定我没有使用它。 'containsString' 在工作场所搜索没有任何结果。突出显示的字符串在 'main.m' 文件中,所以它什么也没告诉我。
你能告诉我如何找到调用 containsString: 的地方吗?
您可以为 containsString 使用符号断点以及读取控制台日志中的跟踪。 https://developer.apple.com/library/ios/recipes/xcode_help-breakpoint_navigator/articles/adding_a_symbolic_breakpoint.html
SWRevealViewController.m的layoutSubviews方法应该包含[super layoutSubviews]
*与建议问题不同的是,我没有直接使用containsString:,而是需要找到它的使用位置。
在 iOs 7 我收到一个错误:
2015-09-08 20:23:06.577 MyProject[2161:607] *** Assertion failure in -[SWRevealView layoutSublayersOfLayer:], /SourceCache/UIKit_Sim/UIKit-2935.137/UIView.m:8794 2015-09-08 20:23:06.580 MyProject[2161:607] -[__NSCFString containsString:]: unrecognized selector sent to instance 0x7bf6c1b0 libc++abi.dylib: terminate_handler unexpectedly threw an exception
我知道 containsString: 只出现在 iOs 8 中,但我确定我没有使用它。 'containsString' 在工作场所搜索没有任何结果。突出显示的字符串在 'main.m' 文件中,所以它什么也没告诉我。
你能告诉我如何找到调用 containsString: 的地方吗?
您可以为 containsString 使用符号断点以及读取控制台日志中的跟踪。 https://developer.apple.com/library/ios/recipes/xcode_help-breakpoint_navigator/articles/adding_a_symbolic_breakpoint.html
SWRevealViewController.m的layoutSubviews方法应该包含[super layoutSubviews]