Friday, January 14, 2011

My first independent IPhone app!

Tried programming a simple IPhone app all on my own since yesterday, and I feel quite accomplished and satisfied because I managed to come up with something that works pretty decently ^.^

Started off with a "TabBar" template and modified it until it looks like this.

What I practised while coding this application was:
1) <UITableViewDataSource,UITableViewDelegate>
2) How to connect UIViewController to View objects
3) How to load a web image into a UIImageView

It was fun! :)

First View when app is loaded. User can click on any of the rows. Uses UITableView

Displays an image loaded from web

Wednesday, January 12, 2011

NSURLConnection - failed

Tried out some NSURLConnection programming today, but didn't succeed.

So this project will have to continue tomorrow perhaps.  

Anyway, keeping these links in hand in case I may need them later

NSURLConnection @ Apple Developer
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html

Dynamically update your IPhone from TouchCode Magazine
http://www.touch-code-magazine.com/update-dynamically-your-iphone-app-with-new-content/

Adding Local Weather Conditions To Your App
http://icodeblog.com/2010/09/03/adding-local-weather-conditions-to-your-app-part-12-implementing-corelocation/

Sunday, January 9, 2011

7th, 8th and 9th IPhone App - Utility App, TableView with image, Indexing and Searching in a Table View

Did three more practice apps by following the instructions in Chapters 9 and 10 in Wei Meng's book again.

UtilityApp Template - Allows us to quickly create applications that can switch to a different view.  Wei Meng's example also teaches the reader how to add a TABBAR item (+ button as seen in the screenshot below)

Utility App (The default template does not have the + button, the book teaches you to add it and to perform action when it is clicked)



TableView

I learnt how to
Add items to a Table view
Allow users to select rows in a Table view
Add images to rows in a Table view
Group items in a Table view in sections
Add an index to a Table view
Implement a search in a Table view
Add disclosure and checkmark images to a row in a Table view

TableView populated by a Property List, with image

TableView organised in sections, with index on right and search bar on top

Saturday, January 8, 2011

FIFTH AND SIXTH IPHONE APPLICATION - TabBar App, Navigation-based Application

Did two more apps by following Wei-Meng's book (Chapter 8) which use the TabBar and Navigation Based templates respectively.

Starting to get the hang of IPhone app programming ^.^

Navigiation-based App, selecting an item allows us to switch to another view

TabBar App

Friday, January 7, 2011

Fourth IPhone Application - UIViewController

Today, I learnt how to implement multiple views using the UIViewController by reading Chapter 7 of "Beginning iPhone SDK Programming with Objective-C
by Wei-Meng Lee"
.

In this chapter, Wei-Meng teaches the reader how to create a Window-based IPhone application creating a UIViewController that maps a View to a Window in two ways, using the Interface builder and using programming code.

The reader is also taught how to switch between two views as shown in my screenshots here. I took an entire morning to try out the code, as I kept missing steps here and there, but the feeling of accomplishment after seeing it run in the IPhone simulator makes me forget about my earlier anguish each time! ^.^

Initial appearance of application

Switches to this view when the "Ok" button in the first screen is clicked.
Conversely, will switch back to "Second View" when the "Click" button is clicked

Third IPhone App - UIViewPicker

Followed the tutorial in "Head First iPhone Development" Chapter two and managed to learn how to use UIViewPicker.

The completed app is supposed to be able to send tweets to a given Twitter account, but sadly it won't work because Twitter disabled basic authentication and would only allow tweeting via OAuth authentication.

Well, looks like my next research topic would be that then!

Wednesday, January 5, 2011

Second IPhone App! ^.^

Followed the tutorial in Chapter "Day 07" of the easy to follow book "Sams Teach Yourself IPhone Application Development in 24 Hours By John Ray and Sean Johnson" and managed to complete my second IPhone application.

Happy!