private void ChangeDescription() { var composer = new Composer { Title = "Description", Text = _model.Description }; composer.NewComment(this, () => { var text = composer.Text; _model.Description = text; composer.CloseComposer(); }); }
public ComposerView (RectangleF bounds, Composer composer) : base (bounds) { textView = new UITextView (RectangleF.Empty) { Font = UIFont.SystemFontOfSize (18), }; // Work around an Apple bug in the UITextView that crashes if (MonoTouch.ObjCRuntime.Runtime.Arch == MonoTouch.ObjCRuntime.Arch.SIMULATOR) textView.AutocorrectionType = UITextAutocorrectionType.No; AddSubview (textView); }
public ComposerView(RectangleF bounds, Composer composer) : base(bounds) { textView = new UITextView(RectangleF.Empty) { Font = UIFont.SystemFontOfSize(18), }; // Work around an Apple bug in the UITextView that crashes if (MonoTouch.ObjCRuntime.Runtime.Arch == MonoTouch.ObjCRuntime.Arch.SIMULATOR) { textView.AutocorrectionType = UITextAutocorrectionType.No; } AddSubview(textView); }