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

Occasional black preview screen in iOS camera

Ive been playing around with the iPhone Camera and I've noticed that occasionally the preview screen ( the view that appears when the camera is launched) is black, and remains black for about 30 seconds before it shows the preview. This happens irregularly and i dumbfounded to what is causing it. It may work 19 times out of 20 before the black preview occurs.

I used the code from the iOS self destructing app and didn't change much, only the event which triggers the camera.

Any ideas what the issue may be? I've never experienced this problem in other photos apps like Instagram or Snapchat. :-S