How to push SFSafariViewController?

前端 未结 2 1296
小鲜肉
小鲜肉 2021-02-05 08:13

2 strange things happen when I try to push Safari ViewController:

  1. Its adress bar with Done button is placed below my Navigation Bar;

  2. Delegate me

2条回答
  •  Happy的楠姐
    2021-02-05 09:03

    Do not push a SFSafariViewController with the pushViewController:animated: method, instead, use the presentViewController:animated:completion: method.

    The Safari view controller will be presented with a standard push animation.

提交回复
热议问题