|
Replies:
1
-
Pages:
1
-
Last Post:
Apr 22, 2009 2:18 PM
by: shannon.appelcl...
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
1
From:
India
Registered:
4/22/09
|
|
|
|
Clarifications requried on Chapter 16 - SelectContact
Posted:
Apr 22, 2009 2:47 AM
|
|
I am a newbie. I am working on iphone app development. I am following the book, Iphone in Action. I downloaded the source code for the chapter 16. On SelectContact project, I cannot find from where the Add Photo event fires? and also, not able to locate from where the text boxes, combos are coming from? (ie., the new contact page) This may be a stupid query. But i am not aware of it. Can some one help me on this? Please!
Thanks in advance!
Message was edited by: ilx.mac
|
|
Posts:
55
Registered:
5/29/08
|
|
|
|
Re: Clarifications requried on Chapter 16 - SelectContact
Posted:
Apr 22, 2009 2:18 PM
in response to:
ilx.mac
|
|
Interface Builder. Or, to be more precise, contactselectViewController.nib.
When you pull it up you'll see it has the entire page laid out.
If you click on the "+" button and look at its Connections attributes, you'll see it links to newContact: (which is I presume what you meant, since there's no add photo in this example).
If you click on the Text View you'll see it has "myView" as an IBOutlet.
Both of those link to "File's Owner" which you can see is contactselectViewController if you look at the main listing of objects for the .nib.
Sure enough, the view controller shows all the connections in its header file:
@interface contactselectViewController : UIViewController <ABPeoplePickerNavigationControllerDelegate, ABNewPersonViewControllerDelegate> {
IBOutlet UITextView *myText; }
-(IBAction)newContact:(id)sender; -(IBAction)selectContact:(id)sender;
If you need more info on all of this, you should review Chapter 12, particularly pp.214-217.
|
|
|
Legend
|
|
Gold: 300
+
pts
|
|
Silver: 100
- 299
pts
|
|
Bronze: 25
- 99
pts
|
|
Manning Author
|
|
Manning Staff
|
|