Adding an iOS Detail View with the Mobile SDK

One of the things I’ve illustrated with the iOS project of our Mobile SDK is the ease at which a developer can get up and running with the project template that comes with the SDK.  Out of the gate, the SDK demonstrates logging a user in with OAuth and accessing a list of results from a SOQL query to display within a standard table list view.  While this is a great boilerplate, especially showing a clear example of using OAuth for login (which if you are still, say, using a SOAP endpoint – you should be looking at OAuth as a best practice) – but if you’re completely new to iOS development, you might be looking for some basic next steps for building out your based iOS application.

For Cloudstock, I demonstrated the “5 minute iOS application”, which was essentially the creation of a brand new project and then adding in a custom SOQL statement, a detail view and the ability to click into the detail view, all of which are a very common next steps for creating a basic iOS application.  Here is the creation of that functionality via the power of YouTube:

If you’re following along at home and you want to see the code – I’ve got the final product up on github, which includes some other small improvements like showing proper errors and being able to update the record in using the REST API.  I’ll include those steps in some upcoming blog posts.


tagged , Bookmark the permalink. Trackbacks are closed, but you can post a comment.
  • Sridhar Ummethala

    Josh, just a clarification. For the OAuth to properly work and access your specific salesforce account, we will need to copy the consumer key and callback URL from Remote Access settings in salesforce to the project template when creating the project. Is that a correct statement.

  • Right – while the SDK has a demo Consumer Key and Callback URL, you should be using your own defined under Remote Access specific for your application. The demo application definition could be changed or deleted at some point in the future.


    Can You please explain it using the iPad split view controller

  • I could certainly do that in a later video. You also might check out Q’s earlier post: