You are on page 1of 1

10/02/2010 Accessory

Accessory

Accessory
Version: 1.1

Posted: 2009-04-23

Build Requirements: Mac OS X 10.5.6 or later, iPhone SDK 3.0

Runtime Requirements: Mac OS X 10.5.6 or later, iPhone SDK 3.0

View Source Code: Select File

Download Sample Code (“Accessory.zip”, 28.6K)

Description
Demonstrates how to implement a custom accessory view for your UITableView in the form of a checkmark
button. It show s you how to override the appearance or control of the accessory view, much like that of
"UITableViewCellAccessoryDetailDisclosureButton". It implements the custom accessory view by setting the
table's "accessoryView" property with a UIButton of type "UIButtonTypeCustom". It can be toggled by
selecting the entire table row by implementing UITableView's "didSelectRowAtIndexPath". The green
checkmark is trackable (checked/unchecked), and can be toggled independent of table selection.

Document Revision History


Date Notes

2009-04-23 Upgraded for 3.0 SDK due to deprecated APIs.

2008-10-28 Demonstrates how to implement a custom accessory view for your UITableView in the
form of a checkmark button.

Did this document help you? Yes It's good, but... Not helpful...

Shop the Apple O nline Store (1-800-MY-APP LE), visit an Mailing Lists R SS Fe e ds
Apple R e tail Store , or find a re se lle r.

C opyright © 2010 Apple Inc. All rights re se rve d. Te rm s of Use P riva cy Policy
iPhone De v C e nte r iPhone O S R e fe re nce Library Use r Ex pe rie nce : Table s

developer.apple.com/…/index.html 1/1

You might also like