Home Tutorial Iphone Examples iPhone Detail Disclosure Button


Share on Google+Share on Google+
iPhone Detail Disclosure Button
Posted on: April 14, 2010 at 12:00 AM
iPhone Detail Disclosure Button
iPhone Detail Disclosure Button

In iPhone based applications, detail disclosure are used to show the detailed information of list items. On clicking it .. it'll bring up the detail information about the item in list.

We can also say that it's a table view elements and you can use it in your program by calling "cell.accessoryType". In ViewController.m there is a UITableViewFunction "tableView cellForRowAtIndexPath:" what all you have to do is just paste the given code outside the "UITableViewCell" and it will load the DisclosureIndicator at the right side of each cell...

"cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;"

There are two more accessory type in the objective c that you can use in your application. These are ...

1. DetailDisclosureButton: In case if you do not like simple Indicator you can use DetailDisclosureButton instead.

"cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;"

2. Second accessory is CheckMark that will show you CheckMark instead of detail indicator.

"cell.accessoryType =UITableViewCellAccessoryCheckmark;"

Download Code


Related Tags for iPhone Detail Disclosure Button:

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: April 14, 2010

Recommend the tutorial

Advertisements Advertisements