Questions tagged [commitanimations]
15 questions
4
votes
2 answers
UIView removeFromSuperView animation delay
I have a method which animates one of the subviews of UIWindow and then removes it from UIWindow using removeFromSuperview. But when I put removeFromSuperview after animation block, the animation never shows, because removeFromSuperview removes the…

Mike
- 1,712
- 3
- 17
- 17
3
votes
1 answer
How to get UIImageView real location in view while animation?
Hi all,
For the animation i used:
[UIView commitAnimation:@"anim" context:nil];
[UIView setAnumatioDuration:10];
imageView.center=CGPointMake(100,100);
[UIView commitAnimation];
The thing is that when i call with timer every 0.5 seconds:
CGRect…

user1010046
- 31
- 2
3
votes
2 answers
BeginAnimations and CommitAnimations with NavigationController.PushViewController
I'm trying to get a basic flip animation transition working when I push a controller inside a navigation. The code below flips the view, however the view appears first (each element fades in), and then the flip occurs. Is it possible to do a flip…

Chris S
- 64,770
- 52
- 221
- 239
2
votes
1 answer
- (void)viewWillAppear:(BOOL)animated detect custom animation
I have a button which when pressed pushes a view controller however i'm using a custom animation so pushViewController: childController animated: is set to NO. What i want to do though is detect this custom animation in my -…

Sami
- 1,374
- 1
- 16
- 43
1
vote
2 answers
flip viewController only flips the first time
I am flipping over to an info view on the backside. I have it flipping, and I have a navigation bar on the other side to get me back home to the original view (which was a problem when I was trying to use a modal).
My problem now is that it only…

snorkelt
- 57
- 6
1
vote
1 answer
UITableView Navigation Bar "Flickers" on Animation
I have a UIViewController, a "switcher" that will basically just rotate a view from one to another.
It all works great, except that the view that I am transitioning to is a UIViewController which holds a UITableViewController. For some reason, when…

dewberry
- 225
- 1
- 2
- 8
1
vote
3 answers
Animation on the iPhone - use image sequence or rotation?
I am creating a basic animation for my iPhone app. I have a choice to make between 2 different types of animation. I can use this...
NSArray *myImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"myImage1.png"],
[UIImage…

user157733
- 569
- 2
- 12
- 26
1
vote
4 answers
Move a UIView with start point
I have this code below who move my UIView to left:
- (void)viewDidLoad {
[super viewDidLoad];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:4];
int xOriginal = 91;
CGRect rect =…

user3781174
- 245
- 5
- 16
1
vote
1 answer
cocoa touch trying to delay the animation of the uiview before it pops out again
I have a UIView that serves as the container for 2 tableviews. I have two buttons that controls how data is loaded on those tableviews. Basically when 1 button is tapped the uiview slides out to show the tableview related to that button, and when…

gdubs
- 2,724
- 9
- 55
- 102
1
vote
1 answer
UIView animation not going back to original state
I am trying to make UIView glow back and forth twice. My animation below works but just after it has finished it goes to the state that I animated it to, and not the original. I set autoreverses to YES so why is it not going back to original state…

pnizzle
- 6,243
- 4
- 52
- 81
0
votes
1 answer
Steady Animation?
I am making a iPhone/iPad app with a cursor and music. I am running a timer every beat and moving it like so:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:theLength];
[UIView…

iosfreak
- 5,228
- 11
- 59
- 102
0
votes
1 answer
How to store animations in obj-c?
I've got 2 methods in my class and in each I've got an animation. My question is, can I store these animations in one array or something and refer to them by beginAnimation:name? If yes, how can I do this?
thanks for help
-(void)hideMenu{
…

Tomasz Szulc
- 4,217
- 4
- 43
- 79
0
votes
0 answers
UIView animateWithDuration & UIView commitAnimations stops working strangely
I have some animations on my app like this:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.3];
navigasyonresmi.frame = CGRectMake((windowgenisligimiz-10)/4, 194, 10, 4);
[UIView setAnimationDelegate:self];
[UIView…

woheras
- 109
- 1
- 5
- 16
0
votes
1 answer
Animation on view's frame reposition overlaps another view
I appreciate if somebody could help me on finding a solution to the next situation.
I want to animate the reposition of an UIView to one point to another one (I was able to do this, please check code below), but I have another UIView in the middle…

Rodrigo Ginyaume
- 21
- 1
- 3
0
votes
1 answer
iOS code crashing on commitAnimations while in main thread
I am animating a scroll view content inset for pull down to refresh.
NSLog(@" in main thread? %d", [NSThread isMainThread]); // prints 1
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:.3];
[scrollView…

Tony
- 18,776
- 31
- 129
- 193