Integrating Pinterest in iOS Application
Pinterest do not provide api's for integration yet.
So in order to achieve it we need to use UIWebView in iOS App.
Follow below steps:
1. Take a UIViewController containing two buttons, one UIWebView.
2. Generate HTML programatically and pass it to loadHTMLString in UIWebView.
3. On touchup-inside of first button, load html string which will open Pinterest in UIWebView.
4. Here pass your custom description and image url which you want to pin.
5. On touchup-inside of second button, close/hide the UIWebView.
Download Code from here: PinterestiOSIntegration
http://stackoverflow.com/questions/9909511/ios-application-integration-with-pinterest answer provided by 'wzbozon'
Above link helped me out.
Great code, thanks! Do you know if it would be possible to pin a file stored in the iOS file system? That is, do a file upload, similar to Pinterest's Add button?
ReplyDeleteI'm interested in this also. Any thoughts on how to pin a file stored in the iOS file system?
DeleteSomeone has created a framework for this...
ReplyDeletehttp://www.varshylmobile.com/pinterest-framework-for-ios
Download the sample app, the code is commented nicely..should be no problem.
ReplyDeleteWonderful blog.. Thanks for sharing informative blog.. its very useful to me..
Mobile App Development Company
Android app Development Company
ios app development Company
Mobile App Development Companies