4.5 Using Different Types of Accessories in a Table View Cell
来源:互联网 发布:linux redis 批量删除 编辑:程序博客网 时间:2024/06/05 16:48
UITableViewCell有个accessoryType属性,你可以为其赋UITableViewCellAccessoryType中的任意值。其中有两个非常有用disclosure indicator(详情标识),和detail disclosure button(详情按钮)。他们都显示一个向右的小箭头来告诉用户,这里还有下文。他们的区别在于disclosure indicator(详情标识)并不触发事件,而detail disclosure button(详情按钮)会触发一个事件。这时拥有详情按钮行就可以触发两个事件,一个是触发cell的事件,一个触发按钮的事件。那如何来捕捉按钮事件呢?delegate那是肯定的。
- (void) tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
{
/* Do something when the accessory button is tapped */
}
- 4.5 Using Different Types of Accessories in a Table View Cell
- 4.6 Creating Custom Table View Cell Accessories
- Different types of keystore in Java -- JKS
- Different types of keystore in Java -- PKCS12
- Different types of keystore in Java -- Overview
- Different Types of Switches in Networking
- How to create different types of thread pool in Java
- Different types of thread-safe Sets in Java
- Different ways of associating known types in wcf
- Protocols in different layers of a network
- Different types of sales document
- Different types of SVM -- opencv
- a case of table cell cover other cell
- Different types Server in Python
- Using Groovy to read values from a different view object
- 5 Examples of Different Types of CAPTCHAs
- ORA-14404: partitioned table contains partitions in a different tablespace
- Cell-Based to View-Based Table Views in Cocoa
- 为面试做准备之冒泡排序
- Hadoop-数据库发送和接收相关实现-DataXceiver解析<转>
- android.widget.textview cannot be casted to android.widget.button
- Toast详解
- 深入解析 SAP ABAP 基本数据类型(ABAP elementary types)
- 4.5 Using Different Types of Accessories in a Table View Cell
- 基于Web的嵌入式设备管理
- hdu2070
- 指针数组和数组指针
- unity3d插入android有米广告
- Slqite3 The database file is locked
- VB程序多国语言的实现
- 关于Zbar和ZXing这两个无比强大的二维码和条形码识别工具
- Spring MVC 教程,快速入门,深入分析