在哪里可以找到pushViewController转换列表? [英] Where can I find a list of pushViewController transitions?

查看:50
本文介绍了在哪里可以找到pushViewController转换列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以找到将新Viewcontroller带入堆栈的转换列表.

Where can I find a list of transitions for bringing a new Viewcontroller onto the stack.

我的代码行是:

[peoplePicker pushViewController:myDetail transition:6];

选择联系人后,按

.在哪里可以找到转换列表,为什么"6"可以正常工作?我也收到此代码的警告,说它即使正确地产生了过渡也可能不会响应过渡.制作这些动画的正确方法是什么?

after selecting a contact. Where can I find a list of transitions, and why does "6" work correctly? Also I get a warning with this code saying it may not respond to transition, even though it produces the transition correctly. What is the proper way to do these animations?

谢谢

推荐答案

该方法是私有方法,不适合第三方开发人员使用.

That method is a private method that isn't intended to be used by 3rd party developers.

之所以起作用,是因为Objective-C的动态设计.尽管Apple可以将其方法隐藏在私有类别中,但它们不能阻止它们在运行时被调用.

The reason it works is because of Objective-C's dynamic design. While Apple can hide their methods in private categories, they can't prevent them from being called during runtime.

我假设您收到警告,说明 UINavigationController (或任何类)可能不响应该方法,并假定它返回(id)并以...作为参数.除非您自己公开了该方法.

I assume you're getting a warning explaining that UINavigationController (or whatever the class is) may not respond to that method and will assume it returns (id) and takes ... as arguments. That is unless you've exposed the method yourself.

无论哪种方式,Apple都会在审核期间发现它,并且您的应用很可能会被拒绝.SDK的条款禁止使用私有API.

Either way, this will be caught by Apple during review and your app will very likely be rejected. Private API usage is forbidden by the terms of the SDK.

这篇关于在哪里可以找到pushViewController转换列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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