2013-03-31 31 views

回答

3

第二个参数是详细文本值。请注意,您必须指定支持详细文本的单元格样式(第三个参数) - 默认单元格样式不显示详细文本值。

new StyledStringElement ("Default", "Invisible value", UITableViewCellStyle.Default), 
new StyledStringElement ("Value1", "Aligned on each side", UITableViewCellStyle.Value1), 
new StyledStringElement ("Value2", "Like the Addressbook", UITableViewCellStyle.Value2), 
new StyledStringElement ("Subtitle", "Makes it sound more important", UITableViewCellStyle.Subtitle), 
new StyledStringElement ("Subtitle", "Brown subtitle", UITableViewCellStyle.Subtitle) { 
    DetailColor = UIColor.Brown 
} 

查看MT.Dialog sample app了解该代码的实例。