[Mono-bugs] [Bug 643570] New: UIView.Animate() throws exception on the emulator

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 4 12:19:18 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=643570

https://bugzilla.novell.com/show_bug.cgi?id=643570#c0


           Summary: UIView.Animate() throws exception on the emulator
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Class Libraries
        AssignedTo: gnorton at novell.com
        ReportedBy: borislav.parvanov at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.24 Safari/534.7

UIView.Animate() throws exception on the emulator. 
Here is an example:
            UIView.Animate(0.7d, delegate 
            { 
                btnClose.Alpha = 1f;
                btnLock.Alpha = 1f;
            });
OR
            UIView.Animate(0.7d, () => 
            { 
                btnClose.Alpha = 1f;
                btnLock.Alpha = 1f;
            });

However the same code runs on iPhone3GS device without any problems.
Here is the exception message:

MonoTouch.Foundation.MonoTouchException has been thrown
"Objective-C exception thrown. Name: NSInvalidArgumentException Reason:
*** +[UIView animateWithDuration:animations:]: unrecognized selector sent to
class 0x374189c


Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list