Posts

Showing posts with the label MVC tutorial

[iPhone Tutorial] Create your own Apple iPhone Clock App

Image
In this post, we will make an iPhone Clock App which displays the current time on the screen. This is a continuation from our first Hello World App. Open up the previous Hello project and I’ll show you how to get programmatic access to the label so that the text can be modified within our ViewController class. In order to do this you will need to connect the label in interface builder to a property of the ViewController class. Say goodbye Open ViewControler.xib and use the toolbar to show the assistant editor. ( Figure A ) Figure A The secondary editor is displayed next to the ViewController interface and should automatically open the header file for the ViewController class. Hold down the control key and then click and drag from the label to inside the view controller header file as shown in Figure B . Figure B Once the arrow reaches inside the interface definition you can let go to receive an Outlet connection popup. Set the name of the control to “l...