2011-04-13から1日間の記事一覧
本当にやりたかったのはUILabelをUITextViewみたいな内側にドロップシャドウがあって、かつ角丸にすること。 以下のコードで角丸にはできた。 UILabel lbl = new UILabel (); lbl.Layer.CornerRadius = 5.0f; lbl.Layer.BorderWidth = 1.0f; lbl.Layer.Borde…
UIPickerViewをポップアップして表示しなければならなくなった。 見つけたサンプルを元に少々手を加えて以下のようにした。 UIActionSheet alert = new UIActionSheet("タイトル", null); alert.Style = UIActionSheetStyle.BlackTranslucent; UIPickerView …
前回の続き。 UIPickerViewの選択肢をアイコン+ラベルにする。 やりかたとしては本家SDK同様にUITableViewCellを使うようにする。今回はUIPickerViewModel*1を継承してclassを作る。 public class TestData : UIPickerViewModel { string names = new string…