Swift Present的一個秘密Bug

Swift Dev Present style

一般來說 使用 卡片式 present後 dismiss,會重新啟動生命週期

viewDidLoad balabala….

但是今天竟然部有時候會跑生命週期,有時候不會….. why

經過認真考察後

正常狀況如下,dismiss後,本ViewController會重跑生命週期

但是呢,使用這個方法就不會重跑生命週期喔!!!

經驗分享~

--

--

Major in physical education. Football referee. And high interest in looking the world through the numbers.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mario tsai

Major in physical education. Football referee. And high interest in looking the world through the numbers.