-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accessing .rightAxis gives EXC_BAD_ACCESS #2082
Comments
Interesting. What happens if instead of disabling the
|
I cannot even access the rightAxis property itself as I m getting the same bad access error.
… On Jan 16, 2017, at 2:22 PM, mossby ***@***.***> wrote:
Interesting. What happens if instead of disabled the rightAxis you simply disable all it's draw* Bools? I think it has more or less the same effect (visually) as outright disabling the axis
rightAxis.enabled = true // you could skip this line altogether
rightAxis.drawLabelsEnabled = false
rightAxis.drawGridLinesEnabled = false
rightAxis.drawAxisLineEnabled = false
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
as far as I can tell, internal override func initialize()
{
super.initialize()
_leftAxis = YAxis(position: .left)
_rightAxis = YAxis(position: .right) is where you start debugging. Don't forget to check out ChartsDemo first.. |
I spent some time debugging the issue -- my observations made me to believe that somehow Xcode and carthage screwed up my environment. I was able to access the property in debugger, but not when I was running the code on the device. Anyways, I re-created the project and it all started to work. I'm closing the issue. Thank, everyone, who responded. |
Hello,
I'm trying to build a BarChart, which is embedded into a UITableViewCell. The code below works fine, but when I'm trying to disable rightAxis, I'm getting EXC_BAD_ACCESS. Doing the same for the left axis works just fine. Any ideas?
Another funny observation. When I'm disabling the leftAxis, the right axis disappears on my chart.
I'm trying to wrap my head around this for the last couple of days, but no luck so far... Help is much appreciated. Here the code:
import UIKit
import Charts
class ChartCell: UITableViewCell {
}
Thanks a lot!
The text was updated successfully, but these errors were encountered: