Open Hochunseng opened 6 years ago
print the retrievePics()
& make sure photos
have data.
Black screen means you are not passing any images array...
Ok I printed the photos array and it looks like the browser is initiated before the pictures are appended to the photos array through retrievePics(). In my ViewDidLoad I am calling retrievePics() then initiateBrowser() but the browser finishes initiating before any of the pictures are appended. How can I make sure all the pictures are appended before the browser is initiated?
Here is the setup I have so far:
I'm omitting my retrievePics() function for privacy purposes but essentially it converts UIImages to MWPhoto objects and appends them to the photos array.