Change a UIView Frame

前端 未结 4 645
执念已碎
执念已碎 2021-01-23 07:48

I have set a UIView in my storyboard and make it an outlet.

 @property (nonatomic, weak) IBOutlet UIView *testView;

4条回答
  •  礼貌的吻别
    2021-01-23 07:57

    Assuming its connected to your XIB do the following after changing the view -

    [self.view setNeedsDisplay];
    

提交回复
热议问题