uianimation

Flickering animation with UIViewAnimationTransitionFlip

我怕爱的太早我们不能终老 提交于 2020-02-23 06:48:10
问题 I have a containerview with 2 subviews. I want to flip from one to another. The problem is that some kind of flickering appears. It doesn't happen on the iPhone 3GS, but on the Simulator and the iPhone 3G: http://www.hanspinckaers.com/upload/Flickering.png Does anyone know why this happens? This is the code: [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration: 0.75]; [UIView setAnimationDidStopSelector:@selector(afterAnimationProceed)]; [UIView setAnimationDelegate:self];

Flickering animation with UIViewAnimationTransitionFlip

南楼画角 提交于 2020-02-23 06:48:05
问题 I have a containerview with 2 subviews. I want to flip from one to another. The problem is that some kind of flickering appears. It doesn't happen on the iPhone 3GS, but on the Simulator and the iPhone 3G: http://www.hanspinckaers.com/upload/Flickering.png Does anyone know why this happens? This is the code: [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration: 0.75]; [UIView setAnimationDidStopSelector:@selector(afterAnimationProceed)]; [UIView setAnimationDelegate:self];

UIPageViewController keeping previous ViewController on the Background of the view

别说谁变了你拦得住时间么 提交于 2020-01-25 00:40:14
问题 I have an UIPageViewController, that i bring up programatically, i have overwritten the viewControllerBeforeViewController and the viewControllerAfterViewController methods to dinamically create the viewcontrollers after each flip. The problem is that when i don't complete the flip page movement and the previous view controller comes back to the view, the same view controller remains on the background of the view, messing with the content i am displaying. I have tried using the callback

Animate UILabel width with fixed center

好久不见. 提交于 2020-01-24 12:46:05
问题 How to animate a change in width while keeping the view centered? Currently when I do it, it doesn't grow from the center. self.textLabel = UILabel() self.textLabel.frame = CGRectMake(0, 0, Globals.voterTextLabel, Globals.voterTextLabel) self.textLabel.center = CGPointMake(self.view.frame.width/2, self.view.frame.height/2) self.textLabel.text = "VS" self.textLabel.layer.cornerRadius = Globals.voterTextLabel/2 self.textLabel.layer.masksToBounds = true self.textLabel.clipsToBounds = true self

Animation not Shown When Calling it First Time

纵然是瞬间 提交于 2020-01-15 03:16:26
问题 I have one simple animation: - (void)showMenu { [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.5]; [UIView setAnimationDelay:0.0]; [UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; self.scrollView.frame = CGRectMake(296, -150, 432, 356); [self.buttonMenu setImage:[UIImage imageNamed:@"menu_arrow_up.png"] forState:UIControlStateNormal]; [self.view bringSubviewToFront:self.scrollView]; [UIView commitAnimations]; } When I call this animation the first time, just

Moving content of UITableViewCell on tap

旧时模样 提交于 2020-01-14 04:52:16
问题 If anyone have Google+ App can certainly understand what I'm trying to implement. ( explained here: UIViewController Containment with animation like Google+) I think it has something related with the new effect in iOS 7 Calendar App. ( explained here: Recreating iOS 7 Calendar UIView Animation) - This is a common animation effect that I'm seeing in many apps these days. Months ago, the fellow Rob tried to help me with this his answer: Now I was trying to implement it but there's a problem.

cancel a UIView animateWithDuration before completion

徘徊边缘 提交于 2020-01-01 04:15:13
问题 I have this code in my project: - (void) fadeImageView { [UIView animateWithDuration:1.0f delay:0 options:UIViewAnimationCurveEaseInOut animations:^{ self.imageView.alpha = 0.0f; } completion:^(BOOL finished) { //make the image view un-tappable. //if the fade was canceled, set the alpha to 1.0 }]; } however, there are circumstance where i would like to cancel this operation before the imageview has become invisible. Is there a way to cancel this animation mid animation? 回答1: Update: prefer

cancel a UIView animateWithDuration before completion

杀马特。学长 韩版系。学妹 提交于 2020-01-01 04:15:06
问题 I have this code in my project: - (void) fadeImageView { [UIView animateWithDuration:1.0f delay:0 options:UIViewAnimationCurveEaseInOut animations:^{ self.imageView.alpha = 0.0f; } completion:^(BOOL finished) { //make the image view un-tappable. //if the fade was canceled, set the alpha to 1.0 }]; } however, there are circumstance where i would like to cancel this operation before the imageview has become invisible. Is there a way to cancel this animation mid animation? 回答1: Update: prefer

Animating on some part of UIBezier path

痴心易碎 提交于 2019-12-25 06:27:47
问题 I have two UIBezierPath... First path shows the total path from to and fro destination and the second path is a copy of the first path but that copy should be a percentage of the first path which I am unable to do. Basically I would like the plane to stop at the part where green UIBezier path ends and not go until the past green color. I am attaching a video in hte link that will show the animation I am trying to get. http://cl.ly/302I3O2f0S3Y Also a similar question asked is Move CALayer via

Animating on some part of UIBezier path

本小妞迷上赌 提交于 2019-12-25 06:27:29
问题 I have two UIBezierPath... First path shows the total path from to and fro destination and the second path is a copy of the first path but that copy should be a percentage of the first path which I am unable to do. Basically I would like the plane to stop at the part where green UIBezier path ends and not go until the past green color. I am attaching a video in hte link that will show the animation I am trying to get. http://cl.ly/302I3O2f0S3Y Also a similar question asked is Move CALayer via