Restore pre-iOS7 UINavigationController pushViewController animation

前端 未结 10 2309
终归单人心
终归单人心 2020-11-30 21:14

So. Just started transitioning my IOS code to IOS7, and ran into a bit of problem.

I\'ve got a UINavigationController, which has child ViewControllers a

10条回答
  •  無奈伤痛
    2020-11-30 21:52

    Thanks guys for the feedback. Found a solution in completely recreating the UINavigationController's behavior. When I was nearly finished I ran into Nick Lockwood's solution:

    https://github.com/nicklockwood/OSNavigationController

    OSNavigationController is a open source re-implementation of UINavigationController. It currently features only a subset of the functionality of UINavigationController, but the long-term aim is to replicate 100% of the features.

    OSNavigationController is not really intended to be used as-is. The idea is that you can fork it and then easily customize its appearance and behaviour to suit any special requirements that your app may have. Customizing OSNavigationController is much simpler than trying to customize UINavigationController due to the fact that the code is open and you don't need to worry about private methods, undocumented behavior, or implementation changes between versions.

    By overriding my UINavigationController with his code, I was able to work with background images in UINavigationcontrollers

    Thanks!

提交回复
热议问题