views:

977

answers:

3

Hello ! Every one.

I was googling for applying horizontal page curl in iPhone. I also tried this, but it wasn't appropriate for me (To change orientation & work in different ori.). I tried to google more. Finally I got a link or link . From Where, I could Understand the horizontal page curl.

But when I went to code deeply, I found some confusing points. Let me list down.


Please download attached code - it's not my code. ( I am not selling any code, but Direct project link would be better than placing multiple codes here. )

  1. extern NSString *kCAFilterPageCurl; // From QuartzCore.framework
    is it valid to use internal variable ? ( as it's mentioned - from QuartzCore )

  2. CAFilter *previousFilter = [[CAFilter filterWithType:kCAFilterPageCurl] retain];
    Above statement is giving warning ( not error ) -> no '+filterWithType:' method found
    Might be using internal (apple's private) method.

  3. [previousFilter setDefaults];
    Above statement is giving warning ( not error ) -> no '-setDefaults:' method found
    Might be using internal (apple's private) method.

Now My queries.

  1. I have above doubts in the project ( that might be using apple's private methods ).
  2. Is this code safe for apple store approval ?
  3. If 2's answer is wrong, what should be done for horizontal page curl ?

In short, I want a horizontal page curl, But Need your suggestions for having the proper solution, which might not trouble me in future.

Thanks in advance for your great help.

Sagar.

+2  A: 

CAFilter is private API, that's why you see compiler errors and warnings. What's worse is that Apple may reject your application for use of private API.

Costique
*will*. Easily detected private APIs are checked automatically.
KennyTM
Should I delete my question ?
sugar
I don't think that asking about private API is subject to prosecution. This is not Fight Club, after all.
Costique
A: 

This is very interesting! I am curious about using some parts of this code to list and scale pdf page without page curl effect. Is it possible to avoid some private API and implement listing and zooming?

rackom
A: 

Some fantastic work on this topic at this blog, and a couple great github projects linked: http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html

Chad Udell