why “present modal view controller”?

后端 未结 3 1718
Happy的楠姐
Happy的楠姐 2020-12-10 07:53

Just curious about the modal view controller usage. When and why should we use them? Is there a guideline?

I found the sample core data book code create a navigatio

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 08:32

    Generally you use modal view controllers to focus the user's attention on a Task. When you push, the user is in some kind of navigation flow, but still has the total application at their fingertips. They might decide to go forward or backward, switch to a different tab in the middle, whatever. When they get a modal view controller, they can't do any of that until the task is completed or canceled out of (the modal view is dismissed).

    Pls refer why does this code use presentModalViewController? (not pushViewController) also

提交回复
热议问题