uiviewanimation

UIViewController half screen “drawer slide” animation

笑着哭i 提交于 2019-12-09 11:40:05
问题 I am trying to have a UIViewController that appears with a "slide" animation from the right. Not like a Push segue, not like the Facebook app. I want the new ViewController to slide ON TOP of the current one (not push it away), but only cover PART of the screen, leaving the other part showing the first ViewController. What I have tried: The closest that I have gotten is by creating a custom segue with the following: - (void)perform { __block UIViewController *src = (UIViewController *) self

How can blurriness of UIVisualEffectView be modified while dragging in iOS?

痞子三分冷 提交于 2019-12-09 11:03:33
问题 Currently, I'm using a UIVisualEffectView to apply a blur to an image. I have a UIScrollView. As I pull down on the scrollView, in my "scrollViewDidScroll" method, I'm changing the alpha of the UIVisualEffectView. The current behavior of this is that the blur radius changes smoothly as I drag around in the view. The problem is, of course, I'm not supposed to be doing this. Getting warnings about changing the alpha value of a UIVisualEffectView. I've seen people say to do a smooth transition

Preserve Ripple effect over UIImageView

梦想的初衷 提交于 2019-12-09 07:20:20
问题 I want to preserve Ripple effect on my UIImageView. I know we can animate image for ripple effect , but preserve. In other words I want a rippled image. I know we can animate image using [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:25.0]; [UIView setAnimationTransition:(UIViewAnimationTransition) 110 forView:imgRipple cache:NO]; [UIView commitAnimations]; But it animates , doesn't keep the ripple. I think we can get rippled image if we Pause or Stop animation before

Remove animation in swift

强颜欢笑 提交于 2019-12-09 05:23:00
问题 I have a text field where user should enter info. And a label which points user to text field (like a hint). I want to stop animation and remove hint label once user presses the text field to enter data. There is repeating animation on text label. Was created by: override func viewDidLoad() { super.viewDidLoad() textInput.addTarget(self, action: #selector(CalculatorViewController.removeAnimation(_:)), forControlEvents: UIControlEvents.TouchDown) self.hintLabel.alpha = 0.0 UIView

How to animate removeFromSuperview

故事扮演 提交于 2019-12-09 05:16:37
问题 I animated the appearance of my subview with: CATransition *transition = [CATransition animation]; transition.duration = 0.3; transition.type = kCATransitionReveal; [webView.layer addAnimation:transition forKey:nil]; [self.view addSubview:webView]; But now I want to remove my subView. How can I add animation to do this? Like other CATransition? When to add this? Before or after addSubview? 回答1: Well you could do the animation first and on the animationEndListener call removeFromSuperView

How To Convert A View Controller Animation Transition To A Segue Animation Transition

丶灬走出姿态 提交于 2019-12-09 01:21:22
问题 From what I can gather it is not possible to use a View Controller animation as a Segue transition. Currently I have a set of View Controller animations in an existing project that create animated transitions between View Controllers. For example: Modal Animation .h File: // // MVModalDismissAnimation.h // #import "MVBaseAnimation.h" @interface MVModalAnimation : MVBaseAnimation @end Modal Animation .m File: // // MVModalDismissAnimation.m // #import "MVModalAnimation.h" @implementation

UIView animation stops when view disappears, doesn't resume when it re-appears

老子叫甜甜 提交于 2019-12-08 15:15:22
问题 Here's my config: I have a storyboard with a ListViewController. ListViewController has a subview UIView called EmptyListView. EmptyListView is shown only when there are no items in the UITableView, otherwise it is hidden. EmptyListView has a subview UIImageView called emptyListViewArrow which visually points towards the button to create a new entry in my UITableView. This arrow is animated infinitely in an up & down fashion. I listen for EmptyListView to send a notification when it has

Animate UIView like if it comes closer or moving away

喜你入骨 提交于 2019-12-08 11:17:20
问题 I saw this thread but the solution is not what I'm looking for. I would like to pop up a UIView with an animation similar to how an app appears from the SpringBoard (it seems it comes closer) and make it disappear moving it away. I've tried to animate the frame, but the effect is that the content is not resized: unfortunately I cannot assign constraints to the content of the view; the result should be like if the view is shown with the correct sizes and only the "graphics context" is resized.

How to accomplish a “90% slide” between two UIViews

半城伤御伤魂 提交于 2019-12-08 09:15:14
问题 I have a particular scenario that I'm trying to emulate and, being fairly new to Cocoa Touch, I'm not sure of the best way to accomplish it. Pardon my lacking tactical knowledge; hopefully some clear exposition will help. What I'd Like To Emulate: The app I'm looking at (in particular) is Beat. Below is an example of one of their UIViews - in particular, notice the gear icon for Settings at the bottom. When that gear is touched or swiped up, two primary UIView changes occur: The original

Rotate a UIView infinitely until a stop method is called and animate the view back to its starting point

…衆ロ難τιáo~ 提交于 2019-12-08 04:24:15
问题 I need to rotate a UIView indefinitely. However, I need to be able to stop it per a method, as I'm trying to implement something like a custom UIActivityIndicatorView . The view also needs to animate back to its starting rotation (0 degrees). The problem with all the approaches I've been trying to implement so far is that I'm either unable to stop it manually (until the duration ends), the animation isn't smooth or my view doesn't return back to its starting position. Basically, what I need