Comments (15)
Hey royherma,
Not sure if that is the issue, but you need to add the GKBarGraph class to a subview (UIView) in your ViewController. Than create an IBOutlet of that view in the header file of your Controller Class. After that, using the IBOutlet set the datasource to self (remember to add the delegate protocol in the header file). I think you might even add it to the main View of the ViewController without the subview but not in the AppDelegate.
I Hope that helps.
from graphkit.
I changed a UIView's "custom class" property in the identity inspector to GKBarGraph if that's what you mean. The delegate is set and the protocol is added in the .h file. The "graphView" is added to the VC's view in through the storyboard, and I tried with and without the [GKBarGraph Class] in the appdelegate and vc's implementation file and still getting errors, this time:
2014-08-19 10:34:03.191 Blackout[63436:60b] +[UIColor gk_turquoiseColor]: unrecognized selector sent to class 0x10118d9b0
2014-08-19 10:34:03.193 Blackout[63436:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[UIColor gk_turquoiseColor]: unrecognized selector sent to class 0x10118d9b0'
from graphkit.
Did you add '#import "GraphKit.h"' to the Controller's header file?
from graphkit.
sure did!
from graphkit.
What about the Version? I had a issue that was solved when I updated my pods file too GraphKit version 1.1.1 and updated it.
from graphkit.
i would make my pod 'GraphKit', '~> 1.1.1' right?
from graphkit.
Yes, then run the pod install again.
from graphkit.
i checked that was the version i had anyways
from graphkit.
the gk_ colors should come with GraphKit. It works for me. The error means that the UIColor is not being extended by UIColor+GraphKit category. Weird.
from graphkit.
Ya, but it's not only that, bc if i change those colors to the regular colors, i still get other errors unrelated to the colors like [GKBarGraph height] unrecognized selector sent to ...
from graphkit.
So the whole class is not being included somehow.
from graphkit.
apparently... but i just pod installed and #imported "GraphKit.h" as I did in the previous project...everything should be working correctly :(
from graphkit.
This might sound dumb, but did you open the xcworkspace generated by pods instead the xcode project itself?
from graphkit.
i did open the xcworkspace project as my understanding is that's all i should be working with when using pods.
from graphkit.
You should treat each pod as a framework. Do:
#import <GraphKit/GraphKit.h>
from graphkit.
Related Issues (20)
- BarGraph only displaying max of 6 bars
- Autolayout issues. HOT 1
- GKBarGraph uses same name as an Apple private selector HOT 4
- is it possible to invert the graphic ? HOT 1
- titleForBarAtIndex on Bar Graph not treated as Optional
- Updating the line graph with new values? HOT 1
- Tutorial HOT 1
- Line Chart Crashes if it only has equal values for a line
- NSInvalidArgumentException Error When Passing an array of NSNumbers HOT 1
- Multi line graph with unequal data set
- fix for the NaN exception on GKLineGraph
- Smooth curves?
- FR - Rounded line graph HOT 1
- Graph not plotted correctly if I apply OrderedSet on title labels. HOT 1
- Crashing on [self.graph reset] calling
- FR - Custom Labels
- GKLineGraph issue HOT 2
- FIX: Line Graph - Setting all data values to the same value causes NaN exception. HOT 2
- Not conform to protocol in Swift project 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 graphkit.