Comments (5)
[momentItemViewModel.dataSource addObject:commentItemViewModel];
这个数组在点赞之后变成了不可变熟组了,导致崩溃,没跟踪到哪里改变的。
from wechat.
好的,已经定位到了错误位置,MHMomentItemViewModel.m 第223行代码导致的,笔者会火速修复该Bug
from wechat.
if (self.dataSource) {
[ops addObject:atti];
[ops addObjectsFromArray:self.dataSource];
self.dataSource = ops.mutableCopy;
}else{
self.dataSource = [NSMutableArray arrayWithArray:@[atti]];
}
from wechat.
嗯嗯 ,之前用的是不可变的,后面要做评论数据的时候,才改成不可变的。后面这里就忘记修正了。
from wechat.
笔者这雷厉风行的劲,学习
from wechat.
Related Issues (20)
- header view高度方法走两次的问题楼主解决了吗? HOT 2
- 测试了一下,控制器销毁后,不会立即释放网络请求 HOT 6
- 当点赞用户超过3个以上,长按点赞用户昵称的时候,会把','号也包括进去了 HOT 1
- 点击朋友圈当中的评论,没有弹出输入评论的界面,什么反应也没有,奇怪 HOT 3
- 评论时可以加emoji表情吗? HOT 6
- 请问如何在特定的情况下 切换baseUrl HOT 1
- ios13在跟视图present一个视图然后下拉页面消失重新再present无效 HOT 2
- 请问 如何在某个页面 强制横屏呢 HOT 1
- 请问大神想单独使用朋友圈模块,怎么提取出来呢? HOT 2
- 就冲你这项目文案,必须粉了
- 我目前甚至以后见到的最详细的注释
- pod找不到库,YYCache方法报错,求指导 HOT 7
- 朋友圈图片点击后无法显示 HOT 6
- 昨天反馈你的图片不显示的问题我找到了 是iOS14以后的系统 HOT 2
- 三方库 SGEasyButton 没有了 HOT 5
- 项目用xcode12打开一直是loading状态
- 大佬好,项目用上了ViewModel-Base驱动,现在准备搞组件化,用route分离耦合模块,这个结构请问是不是不合适了 HOT 4
- Incompatible block pointer types sending 'void (^)(NSString * _Nonnull __strong, NSArray * _Nonnull __strong)' to parameter of type 'void (^ _Nullable)(NSString * _Nonnull __strong, id<NSCoding> _Nonnull __strong)' HOT 3
- 方便问一下你现在转前端做的怎么样吗? HOT 1
- heightForHeaderInSection 执行两次的问题 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 wechat.