How to let the user select an image from a google images search on iOS
Is there any way that I can let the user select an image from a google images search an开发者_开发知识库d convert it into a UIImage?
Off the top of my head you could do it like this:
- Do the Google search in your own UIWebView
- Use the UIWebViewDelegate to respond to requests, and filter for the the Google image requests
- Parse that URL to isolate the source image
- Use NSUrlRequest to get the image
- Feed the response data in to a UIImage
There may be a more efficient way, but this seems like a relatively simple way you could do it.
精彩评论