【发布时间】:2013-03-31 14:10:43
【问题描述】:
大家好!
如何在 MonoTouch.Dialog 中设置/访问 StyledStringElement 的 DetailTextLabel?
【问题讨论】:
标签: xamarin.ios element monotouch.dialog xamarin
大家好!
如何在 MonoTouch.Dialog 中设置/访问 StyledStringElement 的 DetailTextLabel?
【问题讨论】:
标签: xamarin.ios element monotouch.dialog xamarin
第二个参数是详细文本值。请注意,您必须指定支持详细文本的单元格样式(第三个参数) - 默认单元格样式不显示详细文本值。
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,了解此代码的实际操作示例。
【讨论】: