-5

I need to make a view as below. (Any starters on this would be helpful.)

enter image description here

1) I need to add a list of items into a view.

2) The particular item should be highlighted if I touch the item in the list and need to get the value of that item.

3) The list should be in scrolled view if extended.

Any starters on this would be helpful.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
2vision2
  • 4,933
  • 16
  • 83
  • 164
  • 1
    better use UITableView – Shankar BS Jul 31 '13 at 05:32
  • Have a look at this github link and try to run [github link](https://github.com/ayushcshah/CustomUITableViewCell) and if you want to highlight on tap have a look at this link https://stackoverflow.com/questions/16265662/how-to-change-color-of-uitableviewcell-when-selecting/16266004#16266004 and to show scroll bar on UITableView have a look at this post https://stackoverflow.com/a/1978526/1959180 and you can also follow this Simple [tutorial](http://www.appcoda.com/ios-programming-tutorial-create-a-simple-table-view-app/) – Ayush Jul 31 '13 at 05:35

2 Answers2

1

Better to use UITableView rather then create custom UIView.
All the Functionality that you need, are available in UITableView.

For your information, you need to use UITableViewStyleGrouped.

Read This official documentation of UITableView

There are may tutorial available but may be it is better for beginner

tutorial - 1.

tutorial - 2

Also if you are interesting with custom UITableView Then it is the best site forever.

iPatel
  • 46,010
  • 16
  • 115
  • 137
1

Have a look at the documentation for UITableView and UITableViewController. These classes provide the functionality you need.

To get you started, read Apple's Table View Programming Guide. It explains the use of table views in great detail.

Greg
  • 9,068
  • 6
  • 49
  • 91