Open billychen2014 opened 8 years ago
崩溃报什么错误呢?
一般只有override开头的方法需要添加super
新建QQ交流群:185534916,欢迎加入!
Hello, 报的错不是那种明显的,是在线上的运行环境里通过dwarf定位到的这句,so.
xcrun atos -arch arm64 -o XXXXold.app.dSYM/Contents/Resources/DWARF/XXX 0x100070000 -[SDCycleScrollView willMoveToSuperview:](in XXXX) (SDCycleScrollView.m:392)
//解决当父View释放时,当前视图因为被Timer强引用而不能释放的问题
(void)willMoveToSuperview:(UIView *)newSuperview { [super willMoveToSuperview:newSuperview];/// 我尝试加上这句,不知道能不能解决
if (!newSuperview) { [_timer invalidate]; _timer = nil; } }