You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. This is my first time using iOS Charts. Thanks for making this. But, I'm having an issue while making my first class using the framework.
I'm getting the error Thread 1:EXC_BAD_ACCESS... on the the chartView.delegate = self statement.
I'm sure that it's a simple oversight on my part, but I can't find it. I have Charts.framework listed in the Embedded Binaries and Linked Frameworks and Libraries areas.
On a related note, the commented areas in the class below are also generating errors with the ENUMs. But, I haven't reached those points yet.
The line setting the delegate is the first line you are attempting to use the chartView property of your view controller. Because it is an implicitly unwrapped optional, it is probably failing while attempting to retrieve the value (which I'm guessing is nil at that point).
Since you are using @IBOutlet, I'm assuming you are using Storyboards or Xibs. If that is the case, make sure you set the correct module (if you haven't) on the Identity Inspector. Here is an example of my storyboard:
Hi. This is my first time using iOS Charts. Thanks for making this. But, I'm having an issue while making my first class using the framework.
I'm getting the error
Thread 1:EXC_BAD_ACCESS...
on the thechartView.delegate = self
statement.I'm sure that it's a simple oversight on my part, but I can't find it. I have Charts.framework listed in the Embedded Binaries and Linked Frameworks and Libraries areas.
On a related note, the commented areas in the class below are also generating errors with the ENUMs. But, I haven't reached those points yet.
Please advise.
Thanks.
The text was updated successfully, but these errors were encountered: