IGListKit icon indicating copy to clipboard operation
IGListKit copied to clipboard

IGListSectionControllerPushThread

Open iCodeWoods opened this issue 5 years ago • 0 comments

In Class IGListAdapter, method _updateObjects_:dataSource:, there has a piece of code:

// push the view controller and collection context into a local thread container so they are available on init
// for IGListSectionController subclasses after calling [super init]
IGListSectionControllerPushThread(self.viewController, self);

I want to know what will happen if don't do this, thanks!

In other words, if self.viewController and/or self is released when executing this method, what will happen?

iCodeWoods avatar Jan 03 '20 06:01 iCodeWoods