Update Label On Another View

后端 未结 2 1845
被撕碎了的回忆
被撕碎了的回忆 2021-01-15 02:27

I have two views with a label on one of them. On the second view, there is a button. What I want to achieve here is to be able to press the button and it updates the label o

2条回答
  •  清酒与你
    2021-01-15 03:17

    use custom delegate method create a delegate in second view and access that view delegate function in first view. or use NSNotification or use NSUserdefaults

提交回复
热议问题