Skip to content

Instantly share code, notes, and snippets.

Created Nov 27, 2010
What would you like to do?
Fix for Chapter 10, Example 5
UIImagePickerController picker;
public override void ViewDidLoad ()
base.ViewDidLoad ();
UIButton button = UIButton.FromType(UIButtonType.RoundedRect);
button.Frame = new RectangleF(0f, 30f, 320, 40f);
button.SetTitle("Select Image", UIControlState.Normal);
button.TouchUpInside += delegate(object sender, EventArgs e) {
picker = new UIImagePickerController();
picker.Delegate = new MyImagePickerDelegate(this);
this.PresentModalViewController(picker, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment