【问题标题】:How do I style Monotouch Dialog Section?如何设置 Monotouch 对话框部分的样式?
【发布时间】:2012-02-03 11:43:09
【问题描述】:

我想像这样设置 Monotouch Dialog Section 的样式(将蓝色背景更改为我自己的图像)...

我该怎么做?

谢谢

【问题讨论】:

    标签: xamarin.ios monotouch.dialog uitableview


    【解决方案1】:

    您需要将 Section 的 HeaderView 设置为新的 UILabel 对象。 UILabel 是 UIView 的后代,因此非常适合。

    确保将背景设置为黑色,将字体设置为所需的字体,并将帧大小设置为 (320,22)。 MonoTouch 使用该帧大小来计算标题应该有多大。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-08-10
      • 2012-07-12
      • 1970-01-01
      • 2013-04-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多