|TNKImagePickerController| clobbers |assetCollection| after |-viewDidLoad|
jeremy-w opened this issue · comments
If you set the assetCollection
on a new TNKImagePickerController
, and then present it, the controller reverts to showing the Moments album.
This is due to this line of code in -viewDidLoad
.
This is a bit tricky to work around at first glance, because the clobber happens asynchronously after -viewDidLoad
is run.
Workaround
- Subclass
TNKImagePickerController
- Override
setAssetCollection:
so that, if the new value isnil
and the old was not, then reject the new value and preserve the old value