我試圖實現一個auto-save
功能,當用戶更改視圖時,該功能將通過網絡發送包含修改數據的數據包。問題是,我還沒有找到一種方法來找出當用戶離開視圖,一些諸如:以編程方式檢測視圖即將更改的時間。
method onChangeViewStart(param currentView, param nextView)
method onChangeViewFinish(param lastView, param currentView)
這是否存在?我的導航正在使用UITabBarController
你知道'viewWillDisappear'? –