mpospese / MPFoldTransition

Easily add custom folding and page-flipping transitions to UIViews and UIViewControllers
http://markpospesel.com/2012/05/07/mpfoldtransition/
1.81k stars 238 forks source link

Missing doInit declaration in some .h files ? #4

Closed joscandreu closed 12 years ago

joscandreu commented 12 years ago

I tried to build & run directly your project and it failed at compile time saying that the doInit method was not declared in several files?

I resolved the problem adding the declaration of the doInit method on those files. However, I'm an Obj-C newbie and I'd like to know for sure that this is a normal thing or maybe is that I'm missing some configuration related to ARC.

Thanks, Jose

mpospese commented 12 years ago

Are you running Xcode 4.3.2 with the LLVM 3.1 compiler? There are some new things in the latest compiler (like not having to forward declare private methods such as doInit). Anyway, what you'd want to do is declare them at the top of the .m file in a private class extension instead of declare them in the header (making them public and visible to all).

joscandreu commented 12 years ago

I'm running Xcode 4.2 with LLVM 3.0. Thanks for the advice, I'll change those declarations to the private class extension.