GithubHelp home page GithubHelp logo

Comments (15)

allurco avatar allurco commented on July 22, 2024

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.

royherma avatar royherma commented on July 22, 2024

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.

allurco avatar allurco commented on July 22, 2024

Did you add '#import "GraphKit.h"' to the Controller's header file?

from graphkit.

royherma avatar royherma commented on July 22, 2024

sure did!

from graphkit.

allurco avatar allurco commented on July 22, 2024

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.

royherma avatar royherma commented on July 22, 2024

i would make my pod 'GraphKit', '~> 1.1.1' right?

from graphkit.

allurco avatar allurco commented on July 22, 2024

Yes, then run the pod install again.

from graphkit.

royherma avatar royherma commented on July 22, 2024

i checked that was the version i had anyways

from graphkit.

allurco avatar allurco commented on July 22, 2024

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.

royherma avatar royherma commented on July 22, 2024

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.

allurco avatar allurco commented on July 22, 2024

So the whole class is not being included somehow.

from graphkit.

royherma avatar royherma commented on July 22, 2024

apparently... but i just pod installed and #imported "GraphKit.h" as I did in the previous project...everything should be working correctly :(

from graphkit.

allurco avatar allurco commented on July 22, 2024

This might sound dumb, but did you open the xcworkspace generated by pods instead the xcode project itself?

from graphkit.

royherma avatar royherma commented on July 22, 2024

i did open the xcworkspace project as my understanding is that's all i should be working with when using pods.

from graphkit.

michalkonturek avatar michalkonturek commented on July 22, 2024

You should treat each pod as a framework. Do:

#import <GraphKit/GraphKit.h>

from graphkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.