My, I like this book (so far). It is really getting down to some cool stuff with the MVC. Mostly, it is showing me how to work with controls via outlets and actions. There is so much to know but if I really understand the framework, I feel I can progress.
Today dealt with implementing switches, an segmented (toggle) control and an on/off button. I have noticed that the key to everything is how to declare and implement the object which is the sender. For example, the UISwitch can be an sender to an action. It has certain properties associated to it. It is one of many such controls. The segmented control is a simple on/off type of device so there is code associated to that. And the list goes on.
It also talked about the Action Sheet and Alert. Most importantly, these sections deal with actions associated to button presses. The Action Sheet is also associated with a delegate as the delegate has to be notified with the sheet has been tapped. Such methods will be implemented from the <UIActionSheetDelegate>, and in this case, the actionSheet: didDismissWithButtonIndex method is implemented. I will need to review this section again after I finish reading the chapter the 1st time through. But I am getting optimistic again -- it is starting to make some sense!!!
No comments:
Post a Comment