Hello,
In some applications like Mail, when you have a UITextField, there is a little + button to the right. When you tap it, a modal view controller comes up which you can select a phone number, address, etc from, and it will appear in the text field. I was wondering how to implement this in my own app. Thanks,
Isaac
views:
1846answers:
3
                +1 
                A: 
                
                
              
            You can do this by having a regular UIView that contains a UITextField and a UIButton as subviews.
E.g
-------------------------------
| UITextField       | UIButton|
-------------------------------
When the button is tapped you can bring up the address book picker (or anything else) as a modal view, and when it closes update the text field as necessary.
                  Andrew Grant
                   2009-03-19 20:15:16
                
              
                +2 
                A: 
                
                
              
            If you want the plus button inside the text field, take a look at the rightView property of the UITextField class, which lets you put any UIView in the right-most portion of the text field.  You can put a UIButton there, as created with
[UIButton buttonWithType:UIButtonTypeContactAdd];
                  Ed Marty
                   2009-03-21 18:08:42