[MonoTouch] Object reference not set exception when calling UIView.Animate

Rolf Bjarne Kvinge rolf at xamarin.com
Fri Mar 16 23:29:49 UTC 2012


Hi,

This is a bit strange: it looks like it's trying to invoke a completed
handler when you didn't provide one.

Does this work:

UIView.Animate(0.5f, ()=>{ this.Frame = new RectangleF(originalLocation,
this.Image.Size); }, () => {});

Rolf

On Sat, Mar 17, 2012 at 12:24 AM, technohead <dj_technohead at yahoo.com>wrote:

> Wrapping the UIView.Animate clause in a try/catch doesn't help. The
> exception
> can only be caught (it would seem) by a try/catch in main.cs.
>
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/Object-reference-not-set-exception-when-calling-UIView-Animate-tp4479639p4479647.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monotouch/attachments/20120317/cbf7c32c/attachment-0001.html>


More information about the MonoTouch mailing list