How to make button in child view to update information in its parent view?

前端 未结 1 395
走了就别回头了
走了就别回头了 2021-01-27 07:44

So I want to make an iPhone app in which there are two views connected by UINavigationController. Let\'s say that the first view is ViewA and it\'s the initial view

1条回答
  •  时光说笑
    2021-01-27 07:51

    Your main problem is to access object of ClassA from ClassB.

    Here are a lot of ways, and answers here, to do :

    Update a label through button from different view

    Xcode - update ViewController label text from different view

    Setting label text in another class

    Set label on another view to stored NSDate

    0 讨论(0)
提交回复
热议问题