SwipeTableView icon indicating copy to clipboard operation
SwipeTableView copied to clipboard

iOS10 crash

Open jihongboo opened this issue 7 years ago • 3 comments

反复滑来滑去有纪律触发crash,问题出在UIView+STFrame的

  • (void)setSt_bottom:(CGFloat)b { self.frame = CGRectMake(self.st_left, b - self.st_height, self.st_width, self.st_height); } warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available. 貌似是无限递归

jihongboo avatar Nov 10 '16 09:11 jihongboo

好的,感谢反馈。回头我查一下这个问题。

liangdrime avatar Nov 11 '16 01:11 liangdrime

// round 之后,解决像素影响问题 // if (round(contentOffsetY) != round(requireOffset.y)) { // scrollView.contentOffset = CGPointMake(scrollView.contentOffset.x, round(requireOffset.y)); // } 注释掉这句话后就OK了,目前还没有发现副作用

jihongboo avatar Nov 17 '16 09:11 jihongboo

同样遇到一样的问题

scrollView.contentOffset = CGPointMake(scrollView.contentOffset.x, round(requireOffset.y));

会递归调用 仔细调试下,发现是设置contentOffset未生效导致的 我设置tableview的estimatedRowHeight、estimatedSectionHeaderHeight、estimatedSectionFooterHeight后,出现的概率就少点了 另外,还进行了如下的修改

                if (round(contentOffsetY) != round(requireOffset.y)) {
                    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
                        scrollView.contentOffset = CGPointMake(scrollView.contentOffset.x, round(requireOffset.y));
                    });
                }

winfredzen avatar Oct 11 '19 04:10 winfredzen