Showing posts with label iPhone. Show all posts
Showing posts with label iPhone. Show all posts

21 January 2012

SMAuth, Simple Mobile Authentication


SMAuth is a simple mobile (and desktop) apps authentication schema. SMAuth is most suitable to run over HTTPS.
The whole idea here is to keep the client out of persisting the username/password and instead persist a token that will expire.
SMAuth is more suitable for Mobile and Desktop applications where the Resource owner (who know the username/password) is the client himself.


08 October 2011

The easier way to create Tabbed Bar in iPhone

I see the easier way to create a UITabBar in iPhone, is through the Controller.

Only create the View yourself, if you want to customize it, otherwise, don't go that way!

Suppose we have a button that we click to open a TabBar with two UITabBarItems, as usual , we push the next controller to the UINavigationConroller ... but this time we will push a UITabBarController..

Here's the code with inline comments:


References:
http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UITabBarController_Class/Reference/Reference.html#//apple_ref/occ/cl/UITabBarController