Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create new contact view

Tags:

iphone

I have been told to do the following:

Implement contact add view like below and let him store in SQL table, contacts will have Name, phone no of mobile, work , fax, email . view should look like below:

enter image description here

My question: Can you clarify me, should I use Addressbook or simply a custom view and a sql database to save data from that custom view? I mean both the options are open here?

like image 580
user735682 Avatar asked Aug 26 '11 19:08

user735682


People also ask

How do I create a contact list in Outlook 365?

Create a contact list. On the People page, on the toolbar, select the arrow next to New contact, and then select New contact list. Enter a name for the list, and then add names or email addresses. Select Create.

How do you view contacts in Outlook?

Viewing contacts (People) in Outlook In Outlook, choose People at the bottom of the screen. By default, you see your personal contacts. To view other address books, in the Find group of the ribbon, choose Address Book.


1 Answers

You can not use address book to create custom content in your application. So you should implement your custom view to collect information to store in your database (sqlite?)

If you are creating contact / modifying existing contact information, you can use address book framework.


Answer for the question in comment (how to go about for this kinda UI)

Yes, Have the grouped table view to get the desired background

Among the many possible solutions, here is the simplest one perhaps:

  • Have 2 sections in your table.
    • First section has a special kinda cell. Only one row in this section. You can use Interface Builder to create the cell contents or you could build from code.
    • Second section contains similar cells. It can contain as many as the fields you need. Just specify UITableViewCell's style to be UITableViewCellStyleValue2 and specify the values accordingly
like image 98
prakash Avatar answered Sep 26 '22 04:09

prakash