AAChartModel / AAChartKit

📈📊🚀🚀🚀An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的现代化声明式数据可视化图表框架,支持柱状图、条形图、折线图、曲线图、折线填充图、曲线填充图、气泡图、扇形图、环形图、散点图、雷达图、混合图等各种类型的多达几十种的信息图图表,完全满足工作所需.
https://cocoapods.org/pods/AAChartKit
MIT License
4.71k stars 750 forks source link

为什么NSNumber用assign修饰? 开启编译优化后会崩溃 #1434

Closed kedu closed 1 year ago

kedu commented 1 year ago

AAPropStatementAndPropSetFuncStatement(assign, AAYAxis, NSNumber *, minRange)

kedu commented 1 year ago

现在把历史版本的这个改成strong就正常了,发现还有number用assign修饰,所以过来问下原因 AAPropStatementAndPropSetFuncStatement(strong, AAYAxis, NSNumber , max) //y轴最大值 AAPropStatementAndPropSetFuncStatement(strong, AAYAxis, NSNumber , min) //y轴最小值(设置为0就不会有负数)

AAChartModel commented 1 year ago

不知道你是不是用的之前的某一个版本的 AAChartKit, 我看最新的代码是正确的

AAPropStatementAndPropSetFuncStatement(strong, AAYAxis, NSNumber *, minRange)
kedu commented 1 year ago

还以为有特殊原因,没特殊原因的话我NSNumber全改strong就可以了