How to refresh UIViewController programmatically?

后端 未结 4 1589
暗喜
暗喜 2021-01-14 20:08

I have a ViewController in which the user selects a card (a custom UIButton) out of a UIScrollView. I have intercepted the touch event selecting the card and identified it,

4条回答
  •  不思量自难忘°
    2021-01-14 20:38

    Once you have a handle on your view:

    UIView *v = ...;
    [v removeFromSuperview];
    

    You could also call the setNeedsDisplay method on your scroll view after calling removeFromSuperview.

提交回复
热议问题