uiviewanimationtransition

View being blocked by UITransitionView after being presented

北城以北 提交于 2019-11-30 06:45:10
I have a side navigation controller and present it via a UIButton. When I make this NC the root view controller directly by [self presentviewcontroller: NC animated: YES completion: nil] , some reason the menu side of the NC is blocked by a UITransitionView that I cannot get to disappear. I've attached an image of the . is another. I have tried the following: UIWindow *window = [(AppDelegate *)[[UIApplication sharedApplication] delegate] window]; window.backgroundColor = kmain; CATransition* transition = [CATransition animation]; transition.duration = .5; transition.timingFunction =

UIViewController transition - objective-c

三世轮回 提交于 2019-11-29 22:37:41
问题 I have UIViewControllers A and B, they are allocated in AppDelegate . I need to apply transition to them. How to transit them without reallocating and replacing UIViews ? This code calls from my UIBarButtonItem in UINavigationController : [UIView transitionFromView:self.view //UIViewController A toView:appDelegate.secondViewController.view //UIViewController B duration:0.5 options:UIViewAnimationOptionTransitionFlipFromLeft This method replaces UIViews in my UIViewControllers , and I can

Container view disappearing on completeTransition:

隐身守侯 提交于 2019-11-29 22:32:42
I am using custom view controller transitions, UIViewControllerAnimatedTransitioning , to present and dismiss a view controller. The presenting animation works fine, but when I run the dismiss animation, once I call completeTransition: the containerView gets removed. I'm not sure what is going on, here is the transition code: - (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext { UIViewController *fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; UIViewController *toViewController = [transitionContext

UIViewController – issue with custom dismiss transition

允我心安 提交于 2019-11-29 20:58:05
Summary I have a content UIViewController that presents a settings UIViewController using a custom transition. The presentation is with presentViewController:animated:completion: . When I later dismiss the settings with dismissViewControllerAnimated:completion: , the presenting controller is suddenly jumped back to it's initial position prior to the settings controller presentation. I have a work around for this on the device but not the simulator. However, I'd like to know what I'm doing wrong rather than hack in a bodge that makes it go away. I also plan to make this animation interactive,

How to add image with parallax effect above UITableView header and keep header sticky?

时光怂恿深爱的人放手 提交于 2019-11-28 22:59:09
问题 Here is an image that explains everything I want to do: My question is, how would I make my view structure. The header of the table view should be fixed at top of the table. But what about the top most image that is above the table view header. Will I have to add the table view inside the UIScrollView ? Parallax effect can be done by CATransform3D , but how would I achieve what I want, that is my question. There are lots of demos but I want to make it done custom. 回答1: You can add image view

Container view disappearing on completeTransition:

点点圈 提交于 2019-11-28 19:14:07
问题 I am using custom view controller transitions, UIViewControllerAnimatedTransitioning , to present and dismiss a view controller. The presenting animation works fine, but when I run the dismiss animation, once I call completeTransition: the containerView gets removed. I'm not sure what is going on, here is the transition code: - (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext { UIViewController *fromViewController = [transitionContext viewControllerForKey

iPhone SDK 4 “Half curl page transition”

余生颓废 提交于 2019-11-28 05:27:14
In Steve Jobs' keynote announcement of the iPhone SDK 4 earlier this year, one of the slides showed that a "Half curl page transition" was part of the new SDK: alt text http://cl.ly/c203189b44788d490ae8/content I've looked through the iOS API docs and I can't seem to find this transition. Does anyone know where it is? It's not a transition, but a modalTransitionStyle . You can check the docs here: http://developer.apple.com/iphone/library/documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/modalTransitionStyle If you create a new

dismissModalViewController with transition: left to right

爷,独闯天下 提交于 2019-11-28 05:02:46
I was using a nice method to dismiss my modal view controller: [self dismissModalViewControllerWithTransition:2]; which makes a slide transition from left to right, like a navigation controller does to pop a view. As this method is a non-public method, apple will not accept it. How can I program this kind of animation in my code (slide from left to right, to dismiss a modal view, and slide from right to left to present a modal view) ? Thanks in advance I have accepted the answer from Safecase, but I would like to publish my final solution here: 1) To present a modal view controller with a from

How to make half curl animation in iPhone like the maps app?

陌路散爱 提交于 2019-11-27 20:19:13
I am using the following code for page curl animation [UIView beginAnimations:@"yourAnim" context:nil]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:yourView cache:cacheFlag]; ... [UIView commitAnimations]; Is it possible to make the half curl animation like the maps.app on iphone/ipod ? Any ideas how to make an similar effect ? Thanks Apple does support this for the presentation of modal views as of 3.2. This makes sense: the page curl effect is intended to signal the user that a page of options or settings is being revealed, and when they are done changing things,

I want to use animation to imageview using UIanimationtransitioncurl right or left. Is it possible?

血红的双手。 提交于 2019-11-27 14:55:47
I want to animate my photo gallery like the pages of the book. Is there any method with that I can use UIanimationtransitioncurl in either the left or right side? This is the code as you have suggested to me. I have done the allocation on the viewdidload method. self.title = @"TransitionsTitle"; // Create the container view which we will use for transition animation (centered horizontally). CGRect frame = CGRectMake(round((self.view.bounds.size.width - kImageWidth) / 2.0), kTopPlacement, kImageWidth, kImageHeight); self.containerView = [[[UIView alloc] initWithFrame:frame] autorelease]; [self