2023年9月

1
Assertion failed: (false && "compact unwind compressed function offset doesn't fit in 24 bits"), function operator(), file Layout.cpp, line 5758.

这个问题可以如下解决 Building Settings 下 Other Linker Flags 加入 -ld64

图片.png

2
CRASH: Invalid update: invalid number of items in section 1. The number of items contained in an existing section after the update (1) must be equal to the number of items contained in that section before the update (0), plus or minus the number of items inserted or deleted from that section (0 inserted, 0 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out).

把代码中有一句刷新某个cell的代码
[self.collectionView reloadItemsAtIndexPaths:@[[NSIndexPath indexPathForItem:self.indexOfmoney inSection:0]]];
改为拿到cell后直接更新上面的空间的内容
SGCollectionCellLableText * tCell = [self.collectionView cellForItemAtIndexPath:[NSIndexPath indexPathForItem:self.indexOfmoney inSection:0]];
tCell.textField.text = self.money != 0 ? [self.money toString] : @"--";

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容