0

通常、プレーン モードでセクションの特性 (フォント、色) を変更するには、ビュー全体を最初から作成する必要があります。

色やサイズを簡単に変更したい場合、もっと簡単な方法はありますか?

これが私がする傾向があることです:

    var header = new UILabel(new RectangleF(0, 0, 320, 25)){
      Font = UIFont.BoldSystemFontOfSize (22),
      TextColor = UIColor.White,
      BackgroundColor = SomethingPretty,
      Text = "Something"
};

Section secGroup = new Section(header);

ここに画像の説明を入力

4

1 に答える 1

2

これは最も簡単な方法のようです:

var header = new UILabel(new RectangleF(0, 0, 320, 25)){
  Font = UIFont.BoldSystemFontOfSize (22),
  TextColor = UIColor.White,
  BackgroundColor = SomethingPretty,
  Text = "Something"
};

Section secGroup = new Section(header);
于 2012-10-16T03:50:44.237 に答える