如何在MonoTouch.Dialog标头部分中放入UISegmentedControl?
发布于 2011-11-19 01:53:12
可以,您可以像操作任何常规UIView一样操作Section类的HeaderView成员:
public class SegmentedSection : Section
{
UISegmentedControl _SegmentedControl;
public SegmentedSection()
: base("")
{
InitializeSection();
}
private void InitializeSection()
{
_SegmentedControl = new UISegmentedControl();
// initialize _SegmenentedControl here...
// make sure to set Frame appropriate relative to HeaderView bounds.
this.HeaderView.AddSubview(_SegmentedControl);
}
}https://stackoverflow.com/questions/8180284
复制相似问题