Scale UIView and all its children

前端 未结 4 1553
独厮守ぢ
独厮守ぢ 2020-12-13 08:34

I have an UIView with around 50 UIButtons. All button positions were given in pixels, relative to the left upper corner of my main UIView.

All (background) images us

4条回答
  •  抹茶落季
    2020-12-13 09:01

    Update for Swift 3.0

    self.view.transform = CGAffineTransform(scaleX: 2.0, y: 2.0)
    

提交回复
热议问题