Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

Sistemas Eciton
PLUS
Sistemas Eciton
Courses Plus Student 5,422 Points

Can i save an image from webview on an Iphone app?

I developed an app with webview like an image gallery, but i want to save the image on the iphone, is it possible to download pictures on the iphone?

3 Answers

Christine Rose
Christine Rose
6,745 Points

I don't really understand your question, but it sounds like you want to run your app on the iPhone and then save one of the images to the phone? Please clarify if I'm mistaken.

It is my understanding that you cannot test apps on a device without becoming an official Apple Developer, which costs $99/yr.

Sistemas Eciton
PLUS
Sistemas Eciton
Courses Plus Student 5,422 Points

Hello, sorry for the bad redaction, the question is...I made an app with a webview and the webview have gallery, i want to know if is posible, when i get pressed the image from the webview, appear the option to "save image" and then save it on the camera roll like in safari, the only option that appears is "Copy".

Thanks.

Christine Rose
Christine Rose
6,745 Points

Ah! Now I understand!

Looks like you have to import ImageKit into your code at the top for starters.

More info here on how to code to save images: https://developer.apple.com/library/mac/documentation/GraphicsImaging/Conceptual/ImageKitProgrammingGuide/ImageViews/ImageViews.html