Set UIViewController view property to custom UIView class without storyboard / nib

前端 未结 4 1980
我在风中等你
我在风中等你 2021-02-07 02:16

I have a UIViewController called LoginViewController. I want to build the view of that LoginViewController fully programmatically<

4条回答
  •  無奈伤痛
    2021-02-07 02:42

    Override the layoutSubviews method to update the frames of the subviews inside your custom view.

    And never call super.loadView(). This is documented for the loadView method.

提交回复
热议问题