uiviewanimation

Orientation without animation giving weird result when UIAlertView is present

房东的猫 提交于 2020-01-01 08:48:11
问题 I am facing a weird problem here. For some reason I am disabling the animation during orientation change in my view controller using [UIView setAnimationsEnabled:NO]; But when the alert view is present and if I change the orientation then it is giving weird result. The attached screen shot is when I change the orientation to landscape. Please note: I am using standard UIAlertView and it is default overlay which is shown when the alert view is present and there is no customisation involved

Reimplement UIView block based animation methods with custom easing curve

流过昼夜 提交于 2020-01-01 03:46:06
问题 The lack of custom easing curves in UIView's block based animation methods leads to Core Animation if more advanced curves are needed. A way of doing this with a Category on CAKeyframeAnimation is discussed in How to create custom easing function with Core Animation?. To keep my code clean and maintainable I would like to go a step further and re-implement UIView 's block based methods and include a block describing the easing curve function. resulting category on UIView would look something

Is there a way to use UIViewAnimationOptionTransitionCurlUp without it animating the entire screen?

空扰寡人 提交于 2019-12-31 16:13:12
问题 I have a view controller that has the following hierarchy: UIViewController | |-view |-presentView (UIView) |-stagedView (UIView) |-UIToolbar I am using the transitionFromView:toView:duration:options:completion: method to animate a page curl up to swap between the presentView and the stagedView . The present and staged view only cover most of the screen and there is a UIToolbar at the bottom. When I use the UIViewAnimationOptionTransitionCurlUp transition, it is animating the whole root view

Is there a way to use UIViewAnimationOptionTransitionCurlUp without it animating the entire screen?

耗尽温柔 提交于 2019-12-31 16:12:47
问题 I have a view controller that has the following hierarchy: UIViewController | |-view |-presentView (UIView) |-stagedView (UIView) |-UIToolbar I am using the transitionFromView:toView:duration:options:completion: method to animate a page curl up to swap between the presentView and the stagedView . The present and staged view only cover most of the screen and there is a UIToolbar at the bottom. When I use the UIViewAnimationOptionTransitionCurlUp transition, it is animating the whole root view

iPhone Flip Animation using UIViewAnimationTransitionFlipFromLeft in landscape mode

大城市里の小女人 提交于 2019-12-31 10:41:55
问题 I am working on one iPhone application in which I implemented one animation UIViewAnimationTransitionFlipFromLeft. Here my application works fine in the Portrait mode. It is doing the same animation as specified means Flip from Left to Right. But when I am doing this UIViewAnimationTransitionFlipFromLeft in landscape mode then it is not rotating from left to right. Instead of it is rotating from top to bottom. This is really critical issue. Can you help me out to solve this. The code I am

iPhone Flip Animation using UIViewAnimationTransitionFlipFromLeft in landscape mode

老子叫甜甜 提交于 2019-12-31 10:41:48
问题 I am working on one iPhone application in which I implemented one animation UIViewAnimationTransitionFlipFromLeft. Here my application works fine in the Portrait mode. It is doing the same animation as specified means Flip from Left to Right. But when I am doing this UIViewAnimationTransitionFlipFromLeft in landscape mode then it is not rotating from left to right. Instead of it is rotating from top to bottom. This is really critical issue. Can you help me out to solve this. The code I am

How to programmatically add a search bar to a UITableView header?

不问归期 提交于 2019-12-31 05:12:16
问题 How would i go about programmatically adding a search bar into a uitableview header? Specifically i have a bar button item that when it's pressed i would like to animate in a search bar into the table view header and when the cancel button is pressed it will animate back out of the view and the header scales back to normal. Would this be possible? Thanks. 回答1: It's based on Swift 2 but It's not very diff to swift 3 Add search delegate to view controller: UISearchResultsUpdating Make a search:

Is there a change to the behaviour of UIKeyboardWillShowNotification in iOS 8?

落爺英雄遲暮 提交于 2019-12-30 07:29:49
问题 I have had a simple UIView block animation that handles animating a group of text fields into view when the keyboard will show (and animate them back when the keyboard hides). This has worked fine in iOS 6 & 7, but now I'm getting incorrect behavior, and it all points to some change in UIKeyboardWillShowNotification . I set up an isolated project to test this further on a single text field, with two buttons that call exactly the same methods that are fired for the keyboard's WillShow and

Custom annotation image rotates only at the beginning of the Program (Swift- iOS)

隐身守侯 提交于 2019-12-30 05:27:12
问题 Please help out a beginner iOS developer here! :) So, I have a timer which gets the latitude and longitude of a bus periodically from a xml sheet which provides real-time locations of the bus. I was able to setup the parser, animate the bus movement and setup a custom (arrow) image for the bus. However, the problem is, I'm not able to able to rotate the bus-annotation everytime I get new values for the latitude and longitude. The busAnnotation rotates only when the program starts, but not

How to pause and resume UIView Animation?

岁酱吖の 提交于 2019-12-28 16:13:25
问题 I have a UIView with several UILabels that is animating from top to bottom and vice versa. A sort of Autoque let's say :) I use 2 functions: -(void)goUp -(void)goDown Those functions start a UIView animation to the required position.They both have an AnimationDidStopSelector defined that calls the other function at the end. This all works smoothly. When touching the screen, using touchesBegan, I would like to pause the current animation and change the vertical position of the UIView using