|
||||||||
iPhone modify "Hello" app to include eventssee previous article on creating simple dummy interface "Hello app". Now going to alter so when user hits the button will generate event that triggers code to display a new message. 1) Need to create model data that contains the message by have predefined array of messages to select from and choose in round robin fashion 3) Create event handling code (controller) that associates the model data with the View Label previously setup in interface. 4) Regiser the event handling controller method to be triggered with even.
Step 0: Lets recall our simple application's interface
Step 1: Create Model Data and IBOutlets
Step 2: Make CONNECTIONs between IBOutlets and Views.
|
||||||||
© Lynne Grewe |