Questions tagged [uianimation]

411 questions
1
vote
2 answers

create a custom view programmatically then animate it

I'm creating a custom view programmatically, which is working fine, then I'm trying to animate the view. For some strange reason the view is animating at all, I'm not sure why. Here is the code: override func viewDidLoad() { …
SwiftyJD
  • 5,257
  • 7
  • 41
  • 92
1
vote
1 answer

Animation: continuous heartbeat monitor lines

I have an image of what symbolises a heartbeat and I'm trying to loop it in my subview so it continuously appears on my view if you understand what i mean. So far I have got it to appear and move across infinitely on my subview however it isn't…
Umar Yaqub
  • 86
  • 1
  • 12
1
vote
2 answers

Presenting View controller disappears after animation

I've a TabBarController in which presents a view controller with custom animations with UIViewControllerAnimatedTransitioning; The animations run normally without issues, but after the animationController(forPresented) function runs, the Presenting…
Ivan Cantarino
  • 3,058
  • 4
  • 34
  • 73
1
vote
1 answer

How to move the profile photo while scrolling up to the header in ios?

I have an application requirement in which their is a profile picture with some personal details in it. But while scrolling the client demands that the profile photo should move to right side at the top header with animation. The android team have…
Daniella D'Cruz
  • 388
  • 1
  • 3
  • 15
1
vote
3 answers

UIView animation block for UILabel in UICollectionViewCell not working

I have custom collectionview cell (item). I have many UILabels in each item. Depending on data from server, I want to update the label appropriately. Updating the data by reloading the corresponding item works fine. Code: isUpdate = YES; …
GeneCode
  • 7,545
  • 8
  • 50
  • 85
1
vote
1 answer

Animation is not smooth on first run (when keyboard appears)

okay so this question is similar to this one , but i followed answer of that question but i didn't worked , so the thing is that i have a Textfield in my view and i want to move it up when keyboard appears this is my code : Notification observer…
remy boys
  • 2,928
  • 5
  • 36
  • 65
1
vote
4 answers

How to create custom view or control with animation for iOS app?

I have been developing iOS for couple of years. So for I have worked with only UI component Apple provided like UITableView, UIPicker, UISegmentController etc. Now I want get the ability to create any UI element or control my own and provide…
Rokon
  • 355
  • 3
  • 11
1
vote
2 answers

Auto layout and animation

in my program I have 14 different buttons with a letter each. And every single button is connected to each other with auto layout. So there is crazy lots of constraints. See first image for explanation: But I want to be able to move every single…
Peter
  • 1,848
  • 4
  • 26
  • 44
1
vote
2 answers

I put UIView.animateWithDuration in viewWillAppear but it runs only during first entrance to the panel - why?

I try to animate a background in my swift ios app. I have an UIImageView with UIImage and I have the following method: func slideImage(){ // Changes constant to be equal to the image width, // this will move the image off-screen on the…
user3766930
  • 5,629
  • 10
  • 51
  • 104
1
vote
1 answer

Custom pop animation to a UICollectionViewController doesn't work

I have a collection view called ProfileCollectionViewController for collection of images. When clicked on an image it presents a HorizontalProfileViewController which displays images in full screen. When back button is pressed on…
Subash
  • 1,002
  • 13
  • 26
1
vote
1 answer

Use for loop with UIAnimation in Objective C

I want to show number in a UILabel from an unknown number to unknown number. Suppose from 40 to 699. I want to show this one by one and then break the loop sequence when required number is arrived. E.g {40,41,42...667,668,669} I want to remove the…
Syed Qamar Abbas
  • 3,637
  • 1
  • 28
  • 52
1
vote
1 answer

Bounce Animation on UITableViewCell

When the UITableView loads I want its first cell to bounce from the Right side, so It indicates the User that they can swipe right to delete a cell. How can I do this ? My code so far: note: In the following code I am just making the cell to blink,…
Illep
  • 16,375
  • 46
  • 171
  • 302
1
vote
0 answers

UIButton shows old title after animation

Can anyone tell me why this shows the old button title for a second when reappearing? func showSuccess(success:Bool) { if success == true { self.stage = 2 //needed to determine what method is triggered on button action …
longbow
  • 1,593
  • 1
  • 16
  • 39
1
vote
1 answer

UITableView selected row center like UIPickerView in Swift

What I want to do: Make UITableView selected row animate like a UIPickerView on selection. I have a UITableViewController in which I am displaying UIImages in rows from Parse backend. The cell size is almost half of the users screen. I have used…
NS1518
  • 838
  • 1
  • 8
  • 23
1
vote
1 answer

Animation not working on UIImageView

I have a UIImageView added as a subview. I am trying to animate it using transform. The animation doesn't, however the imageview is Scaled properly, it's just not auto reversing. Am I doing something wrong? UIImageView * iv_tap = [[UIImageView…
user-44651
  • 3,924
  • 6
  • 41
  • 87