Converting WordPress into Android or iPhone app

Here is a list of points that will help you in order to make an iOS app for your WordPress blog:

You can either parse XML in the RSS feed, JSON by installing a JSON plugin in your WordPress or you can also parse HTML directly.

1) I would suggest using NSXMLParser and parse the RSS feed instead of using JSON. Reason being, if something goes wrong to the JSON plugin, or the developer just stops updating the plugin that you are using or the plugin crashes etc. the JSON data will be crashed and so does the data in the native app that you have made using the JSON plugin. On the other hand, RSS and XML data remains there even you blog crashes. This will not disturb the app users. Same goes with parsing HTML, i won’t recommend it because if you change your theme and the structure of the HTML changes, the parse data in the iOS app will be effected and you will have to do the whole work again and then wait for the App Store submission. So lets stick to parsing XML in the RSS feed.

2) Parse the RSS feed using NSXMLParser. You can also use third party libraries available that parses the XML feeds but i would suggest to stick with the built in NSXMLParser as there is plenty of help available online for it.

2) To connect to the web services like XML feed, you can use third party libraries like AFNetworking or you can use Apple’s built in libraries like NSURLConnection and other classes to connect and download the data from the webservice.

5) Here are some very easy tutorials for the steps above. How to Use NSURLConnection, How To Parse RSS with NSXmlParser

6) After that one of the most important thing is to download images asynchronously in the UITableViewCells where you are displaying your blog posts. I would suggest you to use SDWebImage library as it will save you a lot of time as its a project in its own and you cannot waste your time building something thats already there.

7) Then you have to create a UIWebView and when the row of any blog post inside the UITableView is tapped, you can use the link to segue in the UIWebView to show the actual blog post. You can use didSelectRowAtIndexPath in order to pass data between view controllers.

8) Below the view controller that contains the UIWebView, you can add functions like stop, refresh, sharing on Facebook and Twitter etc.

9) As you can see that is a lot of work and business people just think that its easy to develop an iOS app but the truth is that it takes some time to completely package the app and submit to the App Store. You can also outsource your project by using service like Convert WordPress Blog To iOS App that is completely for free if you share revenue with them but its your choice and i recommend you to code it yourself to have complete ownership of you app.

Rest is just a matter of choice of different functions you would like to make in your app to stand out from the rest. You can add a Facebook style sliding navigation controller on the left side to create and parse specific categories on your blog, you can use Flipboard style swiping in your Web View etc etc. For that stuff there are a lot of third party libraries available.

Hope this helps!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)