首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >MonoTouch.Dialog StyledStringElement

MonoTouch.Dialog StyledStringElement
EN

Stack Overflow用户
提问于 2013-03-31 22:10:44
回答 1查看 695关注 0票数 0

你们好啊!

如何在MonoTouch.Dialog中设置/访问StyledStringElement的DetailTextLabel?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-04-01 03:24:09

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

代码语言:javascript
运行
复制
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

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/15730268

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档