You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to set my own value for the Done button text throughout the library, by referring to a property that I added to CTAssetsPickerController.h. However, self.picker evaluates to nil in the setupButtons method, as CTAssetsGridViewController has not yet been placed in the view controller hierarchy. Setting the action for a nil target works anyway, probably due to run-time searching for a view controller that responds to the action. So this is a low priority change. However, this a bug waiting to happen. Maybe other view controllers have this same problem.
The text was updated successfully, but these errors were encountered:
germs5
changed the title
Move CTAssetsGridViewController.m [self setupButtons] from viewDidLoad to viewWillAppea
Move CTAssetsGridViewController.m [self setupButtons] from viewDidLoad to viewWillAppear
Nov 19, 2015
I was trying to set my own value for the Done button text throughout the library, by referring to a property that I added to CTAssetsPickerController.h. However, self.picker evaluates to nil in the setupButtons method, as CTAssetsGridViewController has not yet been placed in the view controller hierarchy. Setting the action for a nil target works anyway, probably due to run-time searching for a view controller that responds to the action. So this is a low priority change. However, this a bug waiting to happen. Maybe other view controllers have this same problem.
The text was updated successfully, but these errors were encountered: