10

Today I tried to perform a custom segue for UINavigationController push/pop operations and I didn't find a solution.

I can obviously perform the push operation with a custom segue with no problem, but the pop operation (using the default back button) seems to be complicated (Some notes here https://developer.apple.com/library/ios/technotes/tn2298/_index.html).

On the other side with iOS 7 performing custom transitions is quite simple and I can achieve a custom push/pop operations thanks to new APIs.

I which case you choose to create custom transitions and when you just work with custom segue?

My question is probably quite generic and it depends on what we need to do... But I'd like to have your opinion.

4

1 回答 1

1

您不能使用 segues 执行弹出导航,a segues 仅向前或一个方向,它可以从其大头钉轨迹反向,您​​必须使用后退按钮手动弹出控制器,如果我我也会选择 Segues有一个简单的导航应用程序,例如从一个控制器转到下一个控制器的应用程序,但是当导航取决于数据值或您需要在不同的输入处执行不同的操作时,请选择自定义转换

于 2014-07-24T10:38:38.770 回答