Objective-C – Sending data from NSObject subclass to an UIViewController

后端 未结 2 1398
情书的邮戳
情书的邮戳 2021-01-27 06:30

I have an UIViewController which has a UITableView inside. In this view controller I want to display some data that I have downloaded from the internet

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-27 07:18

    You need to take a look at delegates and protocols. They're exactly what you're looking for, as they let classes communicate without having to persist a reference. Here is another explanation on them.

提交回复
热议问题