Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Ribbit Image Loading

The app is essentially running smoothly, however I have one issue.

When I am in the inbox, and I click on a message. It stays highlighted for 4-5 seconds until the photo is loaded, and then in changes to the ImageViewController.

But is is very slow. How can I make it segue immediately and then wait on other display?

I want to know this too. I think you should tag teacher Ben...

2 Answers

Can you maybe post a sample of the code? I can try and see what the issue may be.

The problem results from NSURL. NSURL simply gets data on the main thread. This means that user's scree might get frozen if he tries to request too much data, such as image. Try using NSURLConnection. It could be the answer to your problem.