• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
transitionWithView:duration:options:animations:completion: still defeats me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

transitionWithView:duration:options:animations:completion: still defeats me


  • Subject: transitionWithView:duration:options:animations:completion: still defeats me
  • From: Roland King <email@hidden>
  • Date: Mon, 09 May 2011 21:43:38 +0800

I seem to have a lot of trouble with this method! A few months ago I had my own custom drawRect: and that was messing it up, this time I just have a simple UIView with some controls on it, nothing clever. One of the controls is given by the property 'complexity'. What I want is for my UIView to rotate and show up with/without that control. However whatever I have tried all that happens is the control instantly disappears or reappears, no transition at all. Here's the code ..

	[ UIView transitionWithView:factorsView
					   duration:2.0f
						options:( UIViewAnimationTransitionFlipFromRight | UIViewAnimationOptionAllowAnimatedContent )
					 animations:^{ [ [ factorsView complexity] setHidden:![ [ factorsView complexity ] isHidden ] ]; }
					 completion:NULL
	 ];

factorsView is the UIView subclass and it's displayed and it's on screen.

I've tried with and without the AllowAnimatedContent option. The factorsView never rotates, it stays right where it is, and the complexity subview just winks in and out of existence.

What do I continue not to understand about this method and what reasons are there that I could be getting no actual transition? This is iPad 4.3 if it matters but I suspect it does not. _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSTextView and NSTextContainer size & clipping area
  • Next by Date: Re: what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
  • Previous by thread: Re: what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
  • Next by thread: Re: transitionWithView:duration:options:animations:completion: still defeats me
  • Index(es):
    • Date
    • Thread