Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a iPhone Settings-like view

Tags:

iphone

I want to create a view similar to the iPhone's Settings app.

Is this view using a UITableView or what? Are the items created programmatically or is it possible to do this in Interface Builder?

like image 986
TheLearner Avatar asked Feb 08 '11 16:02

TheLearner


People also ask

Where is Advanced Settings iPhone 11?

After logging in to your account, click on the Settings icon (it looks identical to that found on iOS and OS X). Scroll to the bottom of the Settings page and look for the Advanced section. As of right now, it's located in the bottom-left corner of the Settings page.

How do you get to Settings app on iPhone?

If you are still unable to locate the Settings app, then try tapping the Home button (the button under your screen) twice to bring up the App Switcher, then scroll through the list of apps and see if the Settings icon is there. If you find it, you can tap the Settings icon to open the app.


1 Answers

It is a UITableView with style: UITableViewStyleGrouped

It is possible to do so in Interface builder and there are a number of ways.

This article describes the most intuitive way a Google search has to offer: http://www.galloway.me.uk/tutorials/custom-uitableviewcell/

Key steps are:

  • Create UIViewController with xib (not table view controller)
  • replace it's initial view with a UITableView
  • implement UITableViewDelegate and UITableViewDatasource protocols
  • add any additional UITableViewCells to Interface Builder as extra views
  • refer to them in your view controller class as IBOutlet UITableViewCell *
  • use connections inspector to connect IBOutlets in view controller to cells in Interface Builder
like image 137
Rich Avatar answered Oct 13 '22 22:10

Rich