对于iPhone中的水平页面卷曲,此代码有效吗? [英] Is this code, for horizontal page curl in iPhone, valid?

查看:141
本文介绍了对于iPhone中的水平页面卷曲,此代码有效吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在谷歌搜索中在iPhone中应用水平页面卷曲.我还尝试了,但它不适合我(更改方向并以其他方式工作.)我试图在网上搜索更多.最后,我得到了此链接.从那里,我可以了解水平页面卷曲.

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:

  1. extern NSString *kCAFilterPageCurl; // From QuartzCore.framework
    使用内部变量有效吗? (如前所述-来自QuartzCore)

  1. 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];

以上语句给出警告(不是错误)->找不到'+ filterWithType:'方法.可能使用内部(Apple的私有方法).

Above statement is giving warning ( not error ) -> no '+filterWithType:' method found. Might be using internal (apple's private) method.

[previousFilter setDefaults];

以上语句给出警告(不是错误)->找不到'-setDefaults:'方法.可能使用内部(Apple的私有方法).

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

现在我的查询.

  1. 我对该项目有以上怀疑(可能正在使用Apple的私有方法).
  2. 此代码对苹果商店的批准是否安全?
  3. 如果2的答案有误,应该如何进行水平页面卷曲?

简而言之,我想使页面水平卷曲,并需要您的建议以提供适当的解决方案,这将来可能不会给我带来麻烦.

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

推荐答案

CAFilter是专用API,因此您会看到编译器错误和警告.更糟糕的是,Apple 可能会拒绝您使用私有API的应用程序.

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.

这篇关于对于iPhone中的水平页面卷曲,此代码有效吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆