public override void MotionEnded(UIEventSubtype motion, UIEvent evt) { Console.WriteLine("Motion detected"); if (motion == UIEventSubtype.MotionShake) { Console.WriteLine("and was a shake"); //labelLastUpdated.Text = "All shook up! Updating..."; // never appears // Do your application-specific shake response here... var ice = new ICEViewController(); this.PresentModalViewController(ice, true); } }
public override void MotionEnded(UIEventSubtype motion, UIEvent evt) { Console.WriteLine("Motion detected"); if (motion == UIEventSubtype.MotionShake) { Console.WriteLine("and was a shake"); //labelLastUpdated.Text = "All shook up! Updating..."; // never appears // Do your application-specific shake response here... var ice = new ICEViewController(); this.PresentModalViewController (ice, true); } }