开发者

Create new contact view

I have be开发者_JAVA百科en 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:

Create new contact view

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?


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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜