Skip to content

对Navigation push 进行队列化操作。解决低版本连续push造成的崩溃。(Can't add self as subview)

Notifications You must be signed in to change notification settings

madordie/KTJPushQueueForNavigation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

KTJPushQueueForNavigation

当使用某个页面还没有进行viewDidAppear:的时候再进行一次推页面是不安全的。

苹果在iPhone5C iOS7.1.2中Push时给出的警告:

“nested push animation can result in corrupted navigation bar. Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.”

这说明这个不安全的操作可能会导致应用Crash,Crash统计系统统计的原因为:“Can't add self as subview”。

本文解决该Crash,实现嵌套安全的去推页面。

分析及其他方案见 blog

About

对Navigation push 进行队列化操作。解决低版本连续push造成的崩溃。(Can't add self as subview)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published