-
Notifications
You must be signed in to change notification settings - Fork 469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample project not loading photos on iOS 4.2.1 #1
Comments
I just found out that you need to enable location services to access the user's photo library. After enabling core location, all of the photos loaded as expected. |
I'm having the same problem even after enabling location services (Settings->General->Location Services->On) on my iOS 4.2.1 device. Anyone find an alternative solution to this? |
You have to enable location services for your application, and ask for permission from the user. Enable location services in the settings application will not solve it. |
Thanks for the reply. I googled for a while and found the reason: it appears that [ALAssetsLibrary enumerateGroupsWithTypes:] fails if it is executed on a thread that is not the main thread. Enclosing the function in dispatch_async(dispatch_get_main_queue() seems to solve the bug. The details are documented here: |
The navigation bar continues to say "Loading..." and it never retrieves the photos from the library. It works fine in the simulator.
The text was updated successfully, but these errors were encountered: