Creating settings like the Mail settings in the Settings app

大兔子大兔子 提交于 2019-12-08 12:13:50

问题


I want to create some settings much like the Mail settings within the Settings app. These allow you to add mail accounts to the end of the table

First screen
  ---------------
+ | add account |
  ---------------

When they click on the cell, they are pushed onto a new screen where they fill in a few textfields

Second screen
  -----------------
  |(cancel) (save)|    - the toolbar
  -----------------

  ----------------
  | email        |
  ----------------
  |another field |
  ----------------

Then when they go back, they can see the new record as well as the 'add account' cell.

First screen
  ---------------
  | email   1   |
  ---------------
+ | add account |
  ---------------

It need to be in-app rather than within the Settings app. What's the best way to do this?


回答1:


Check out Apple's CoreDataBooks example: http://developer.apple.com/iphone/library/samplecode/CoreDataBooks/Introduction/Intro.html#//apple_ref/doc/uid/DTS40008405-Intro-DontLinkElementID_2

It will give you an idea how how to set up a group UITableView as well as a UITableViewController.




回答2:


UITableView(Controller) and UINavigationController are your friends here... They are quite comprehensive, so make sure to work through the samples and guides.



来源:https://stackoverflow.com/questions/2982218/creating-settings-like-the-mail-settings-in-the-settings-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!