Reputation: 24820
I was Googling for applying horizontal page curl in iPhone. I also tried this, but it wasn't appropriate for me (To change orientation and work in different ori.). I tried to search the web more. Finally I got this link. From where, I could understand the horizontal page curl.
But when I went to code deeply, I found some confusing points:
extern NSString *kCAFilterPageCurl; // From QuartzCore.framework
is it valid to use internal variable ? ( as it's mentioned - from QuartzCore )
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.
[previousFilter setDefaults];
Above statement is giving warning ( not error ) -> no '-setDefaults:' method found. Might be using internal (apple's private) method.
Now my queries.
In short, I want a horizontal page curl, and need your suggestions for having the proper solution, which might not trouble me in future.
Upvotes: 1
Views: 3765
Reputation: 189
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
Upvotes: 1
Reputation: 23722
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.
Upvotes: 2