[MonoTouch] UIView BeginAnimations

Dean Cleaver dean.cleaver at xceptionsoftware.com
Mon Mar 19 13:38:19 UTC 2012


The code is on the Mac (and I'm on Windows) but it's not a code problem per se. I've tested, and it seems size changes for a UISegmentedControl will not animate, but position changes will. So when the code first executes, it animates because I'm moving the control from one side of the screen to another (although I did notice it shrunk to the new size immediately, and not slowly over the animation). Next execution of the same code only changes the size of the control, hence no animation is visible. I changed it to move it back to the other side, and it is animating then.

The remaining controls didn't animate based on their Hidden values, but using Alpha instead of Hidden works.

-----Original Message-----
From: Nic Wise [mailto:nicw at fastchicken.co.nz] 
Sent: Monday, March 19, 2012 5:57 AM
To: Dean Cleaver
Cc: monotouch at lists.ximian.com
Subject: Re: [MonoTouch] UIView BeginAnimations

Can you post some code? I assume you are doing a CommitAnimations at the end?

On Mon, Mar 19, 2012 at 05:09, Dean Cleaver <dean.cleaver at xceptionsoftware.com> wrote:
> Hi,
>
>
>
> I’ve got some animations that work, and some that don’t and I can’t 
> figure out why. For example, I have a UISegmentedControl that on 
> TouchUp I BeginAnnimations, move it and resize it, and that works. On 
> the next TouchUp, I move it and resize it – and that doesn’t animate. 
> Other controls showing and hiding also don’t animate.
>
>
>
> Are there limitations or have I missed something obvious? From 
> observation, the control resizes instantly, and animates the move the 
> first time round – does resizing not work in animations?
>
>
>
> Dino
>
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>



--
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2


More information about the MonoTouch mailing list