animatewithduration Questions

4

Solved

I'm porting an older app over to Xcode 7 beta and I'm getting an error on my animations: Cannot invoke 'animateWithDuration' with an argument list of type '(Double, delay: Double, options: nil,...

4

Solved

I have used UIView animateWithDuration to increase the shapeLayer.frame.size.height in the code below, but regardless of the duration it animates very fast. A few posts that I found recommended usi...
Robenarobenia asked 9/3, 2016 at 8:59

4

Solved

watchOS 2 does not have any kind of completion block in its animateWithDuration function. I'm working on a game that requires running code after an animation is completed. Are there any work around...

2

Solved

I'm working in Xcode and swift, I created a view acting as a menu that toggles on tap, when the menu comes out I can still click a test button underneath it. I don't want that to happen. I want eve...
Graupel asked 27/7, 2016 at 15:42

1

UIStackView makes it really easy to create a nice animation using the hidden property of a UIView. I have two UIStackViews each with UILabels in the arrangedSubviews and when I add a new UILabel to...
Supplement asked 6/3, 2016 at 14:52

1

Solved

I have this bit of code that I use to switch the root view controller with a nice little animation, it had been working for months... but then randomly stopped working. UIView snapshot = [self.win...
Shielashield asked 20/6, 2016 at 16:56

1

I would like to animate the resizing of a UICollectionViewCell. I have written the code below but cannot have the return line inside the animation block. Any ideas? func collectionView(collectionV...

1

I have a CollectionView and I want to create an animation inside the CollectionViewCell selected by the user. I chose to use animateKeyframesWithDuration because I want to create a custom animation...
Trainor asked 23/3, 2016 at 20:44

1

Solved

I want to move a button from point A to point B. Point A: leadingConstraint = 120, topConstraint = 400. Point B: leadingConstraint = 120, topConstraint = 200. For my game purpose, I can't use frame...
Pentagram asked 2/1, 2016 at 2:2

1

Solved

As the title says it, is there a way to animate a UIVisualEffectView's blur radius? I have a dynamic background behind the view so the ImageEffects addition can't be used... The only thing that can...
Barring asked 26/3, 2015 at 12:25

2

Solved

I have a button that calls an animateWithDuration code that fades an image out, fades text & a new bg color in , and then resets back to normal. The animation takes a few seconds to complete an...
Adventuresome asked 8/9, 2015 at 3:53

2

Solved

The Good My drag & drop function almost works wonderfully. I longPress a cell and it smoothly allows me to move the pressed cell to a new location between two other cells. The table adjusts an...
Holden asked 27/8, 2015 at 18:21

2

I have a simple animation that im performing in my scroll view delegate method scrollViewDidEndDragging. It looks like this: - (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecele...

1

Solved

In objective-C my animation bit would look something like this: [UIView animateWithDuration:0.5 animations:^{ [[[_storedCells lastObject] topLayerView] setFrame:CGRectMake(0, 0, swipeableCell.bou...
Mur asked 18/6, 2014 at 22:29

4

I have an animation which is kicked off when a gesture recogniser (double tap) fires: [UIView animateWithDuration:0.3 animations:^{ _scrollView.contentOffset = CGPointMake(x, y); _scrollViewCont...

1

Solved

I am implementing a health bar that animates via user input. These animations make it go up or down by a certain amount (say 50 units) and are the result of a button press. There are two buttons....
Hilde asked 24/8, 2013 at 20:5
1

© 2022 - 2024 — McMap. All rights reserved.