IFTTT/JazzHands

Installation issue

yunas opened this issue · 8 comments

By simple drag and drop of the src files in custom project. I get 10 errors of similiar kind.
What is the myth behind ?
Unknown type name 'IFTTTFrameAnimation'; did you mean 'IFTTTAnimation'?

If you're using Cocoapods, you can add just pod 'JazzHands' to your Podfile.

If you're not using cocoapods, you should just drag all the files from the src directory into your app. Sounds from the error like you missed a file or two.

@jhersh, I have opted the drag and drop option...
the demo is working fine though

Are you maybe missing an #import "IFTTTFrameAnimation.h" or imports for the other animations you are referencing in your view controller?

emmm no !

Sure looks like you're missing imports. You should try adding some imports to your header:

#import "IFTTTFrameAnimation.h"
#import "IFTTTAlphaAnimation.h"

... // and any others you're using

right ! thanks... I thought since I have subclassed it I wouldnt need them... as of the demo project such header files were not added.

Nope. Look again at the demo: https://github.com/IFTTT/JazzHands/blob/master/JazzHandsDemo/JazzHandsDemo/IFTTTJazzHandsViewController.h#L9

You should be able to #import "IFTTTJazzHands.h" and it will pull everything in

Strange how I missed it. many thanks for your quick support !