iOS: How to achieve behavior like Android's startActivityForResult

后端 未结 3 633
名媛妹妹
名媛妹妹 2021-02-07 10:04

I\'m an Android developer working on an iOS version of our app. I need to know how to achieve behavior similar to startActivityForResult on Android. I need to show a new view co

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-07 10:24

    Generally you can use UINavigationController to enclose your chain of viewControllers. You can then navigate back and forth between viewControllers. For callback you can use viewWillDissapear: delegate method on your second view controller and do some action from there.

提交回复
热议问题