Comments (10)
请问内存泄漏的问题你是怎么解决的?
from yykline.
把转换 Y_KLineModel 放在了Y_KLineGroupModel.m 里面
from yykline.
感谢回复,我是在Y_KLineGroupModel里加了copy方法,也解决了这个问题
from yykline.
copy???
from yykline.
就是拷贝了Y_KLineGroupModel对象再赋到Y_KLineModel中处理,防止出现循环引用
from yykline.
copy???
能不能具体贴下代码?谢谢了
from yykline.
就是拷贝了Y_KLineGroupModel对象再赋到Y_KLineModel中处理,防止出现循环引用
能不能贴下代码?谢谢了
from yykline.
/**
- 前一个Model
*/
@Property (nonatomic, strong) Y_KLineModel *PreviousKlineModel;
/**
- 父ModelArray:用来给当前Model索引到Parent数组
*/
@Property (nonatomic, strong) Y_KLineGroupModel *ParentGroupModel;
把上面的strong改成weak , 保证不会再内存泄漏,我找了3个小时才排除这个问题,作者在这里大意了,指向前一个model和父model,怎么能用strong了,这样导致互相引用,不能释放内存呀
from yykline.
@Property (nonatomic, copy) NSNumber * 这里的NSNumber的属性用strong吧,copy也会内存泄露
from yykline.
fixed.
from yykline.
Related Issues (20)
- RSI HOT 1
- 如何加价格线? HOT 1
- 成交量不显示怎么办
- 不支持分页加载?一次性加载几千条数据有点卡,因为有各种指标的计算,每次加载300条数据,滑动到最左边然后继续加载 HOT 2
- 支持pod吗?
- Y_KLineVolumeView里bugly检测到偶尔数据越界
- 左右滚动,有时segmentView和kLinView间会出现空白
- 接口好像挂了,请求不到数据了 HOT 3
- 滑动到最左边没有加载左侧数据的代理吗?
- 分时情况下,时间横坐标是有问题的,不可能跨天 HOT 2
- 你好,请问k线图里面的副指标还有其他分类吗,比如rsi、 wr这之类的 HOT 1
- 新版本切换指标视图不刷新 HOT 1
- 您好请问能否同时展示多个副图指标? HOT 2
- 大神你好。因为有个几年前的项目用到您这个K线,想请教下 HOT 1
- 接口挂了。 HOT 1
- 支持初始数据的分页加载么ps ws推数据的问题
- Demo运行报错 HOT 2
- 测试数据源失效 HOT 1
- 牛眼行情的数据取不到了,哪个好心人可以提供一份json 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 yykline.