swift 3 call function from parent ViewController
问题 I have a ViewController, this view container has a class which creates 2 container views, and adds a table to the first container and a HashtagPicker for the second. The hashTagPicker has a function which is called whenever a change to the selected hashTags happens. question : i want to call a update table function whenever a tag is changed. How can i call a function from the hashtagclass which is defined in the class that contains the containers? 回答1: I personally like the delegate approach