How do I present a UIViewController by zooming?

前端 未结 3 1774
感情败类
感情败类 2021-02-14 18:42

In my iPad app I have a view controller with a small table view. When you tap on the table view it opens a modal view controller that is a larger and more refined version of the

3条回答
  •  一向
    一向 (楼主)
    2021-02-14 19:06

    Perhaps you could use something like

    CGAffineTransform tr = CGAffineTransformScale(lvc.view.transform, 0.5, 0.5);
    

    to embed a scaled down version of the view in your parent view controller, then present lvc modally and restore scale when the user taps the view.

提交回复
热议问题