0

iPhone Keychain RESTful services

Posted by Terry on Jan 4, 2010 in General, Web Development, iPhone

Well I’m glad to say my iPhone app is finally moving in the right direction, I’m finding stackoverflow to be a goldmine of pointers and code snippets and well explained!  Also during my rummaging I discovered that WordPress actually make their iPhone app source code available for you to download and play with, I think this is very helpful for newbies that are interested in finding how everyone else programs a full app (one accepted and shipping on the store!).

Keychains, this seems to be the way to go on the iPhone for storing users usernames and passwords securely, thankfully there is a class already to use without too much work from me, so I’ve implemented this in my code and so far so good!

http://log.scifihifi.com/post/55837387/simple-iphone-keychain-code

This site also helped point me in the right direction http://discussions.apple.com/thread.jspa?threadID=1536386

So now I have my loginViewController with a login form ready for my user to enter their details and also have the means for the values they enter to be stored securely and accessed by the app later on, so the next bit is validating their input with the website via some service. The iPhone SDK seems to have some nice easy methods for calling webservices and making use of them in the app. So I need to start making some webservices from my web app. So now I’m turning my attention away from the iphone app (kinda) and looking at making RESTful services.

First stop is http://blog.garethj.com/2009/02/building-a-restful-web-application-with-php/ – not sure this is any good but its going to be my starting point.

Also looking forward to the Apple announcement, saw a linked pic of the iSlate today…. very nice! Also Google phone could be an interesting idea, but I’m still sticking to the iPhone!

 
0

iPhone app rootController (Facebook style) and network detection features

Posted by Terry on Jan 3, 2010 in Web Development, iPhone

As planned I started my iPhone app again, being lightly inspired by LinkedIn’s new interface I decided to rewrite my app and move away from a tabbed interface. Now my app runs using a navigation controller and icons are used to browse to different view.

So how far have i got? Well I’ve been working on it for three days on and off and I’ve set up a root controller that houses the icon interface, blank views ready for my various app views and a network detection that detect if the phone has any networking issues, if it does a network unavailable view is displayed as opposed to an alert view (might change this).

Some resources that I found useful so far are:

http://adylitica.com/2009/12/15/test-if-your-iphone-app-is-connected-to-internet/

http://www.raddonline.com/blogs/geek-journal/iphone-sdk-testing-network-reachability/

http://fuelyourcoding.com/iphone-view-switching-tutorial/

Next I need to tackle user login, sqlite3 and connection to my website using RESTful services. I’ll post as I go!

Tags: , ,

Copyright © 2010 terryoleary.co.uk All rights reserved. Theme by Laptop Geek.