uiviewanimation Questions
5
Solved
I have a UIView with a number of subviews and a Tap gesture recognized associated and I want to mimic it having a 'touch' effect. That is, when the tap happens, I want to show the container view to...
Transcendental asked 5/1, 2012 at 17:37
10
Solved
I have an android application that employs a ViewPager with two pages
When the activity first displays i would like to present each page in turn to the user so that they know they can swipe between...
Telemann asked 12/7, 2013 at 7:51
5
Solved
I'm setting up the following UIView animateWithDuration: method, with the intention of setting my animationOn BOOL elsewhere in the program to cancel that infinite looped repeat. I was under the im...
Allamerican asked 21/12, 2012 at 13:55
9
Solved
I have a String with an URL of GIF banner which I need to put into app.
My code:
func showAdd(){
Request.get("http://www.kyst.no/api/?apiMode=advertisement&lang=no", { (error: NSError?, dat...
Oldworld asked 13/1, 2015 at 10:11
2
Solved
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 UI...
Sherd asked 31/8, 2016 at 19:38
7
Solved
UIView.animateWithDuration(1,
animations: { [unowned self] in
self.box.center = self.boxTopRightPosition
},
completion: { [unowned self] completed in
self.box.hidden = true
})
Is it necess...
Amarillas asked 19/11, 2014 at 14:45
7
Solved
I need to handle a case where you can do something with or without animation, instead of:
if (animation)
{
[UIView animateWithBlock:^(){...}];
}
else
{
...
}
I want to do:
[UIView animateWith...
Correia asked 13/11, 2012 at 22:21
2
I have simultaneous animations going on, and I would like to transition the VC in the middle (it will fade so it will see some of the other animations). However, I can't find documentation how to d...
Oncoming asked 17/1, 2019 at 19:57
8
Solved
Im trying to swap to another root view controller with a tab bar; via app delegate, and I want to add transition animation. By default it would only show the view without any animation.
let tabBar...
Etymon asked 14/12, 2016 at 14:1
6
Solved
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 UITableVie...
Revis asked 5/9, 2013 at 3:41
21
Solved
When dismissing a modal view controller using dismissViewController, there is the option to provide a completion block. Is there a similar equivalent for popViewController?
The completion argument...
Vervain asked 15/10, 2012 at 21:36
15
Solved
I am unable to rotate the image by 90 degrees in swift. I have written below code but there is an error and doesn't compile
func imageRotatedByDegrees(oldImage: UIImage, deg degrees: CGFloat) -&g...
Ope asked 30/11, 2016 at 7:20
18
Solved
Is it possible to cancel a UIView animation while it is in progress? Or would I have to drop to the CA level?
i.e. I've done something like this (maybe setting an end animation action too):
[UIVi...
Consonant asked 16/2, 2009 at 23:19
3
Solved
I need a scale spring animation for all my buttons in a project.
So i subclassed UIButton and override touch event functions.
import UIKit
class UIAnimatedButton: UIButton {
override func touche...
Riyal asked 28/6, 2015 at 21:33
6
Solved
I have a View with UIButton, UITextField, and a UIImageView for Background.
in viewDidLoad i try animate UIImageView from alpha=0 to alpha =1 using block. it's pretty basic, here's the code:
[UI...
Generally asked 14/10, 2011 at 7:48
2
i got the following problem.
i subclassed a uiscrollview which contentOffset is animated by this code:
[UIView animateWithDuration:1.0
delay:1.0
options:options
animations:^{
self.contentOff...
Paten asked 8/9, 2011 at 10:57
4
Solved
My design team gives us animation parameters using friction and tension. For instance:
Has a spring affect (280 tension and 20.5 friction) Over 0.3 seconds
Unfortunately, i've always guessed w...
Song asked 25/4, 2018 at 19:5
4
Solved
I have a problem with the setting UIViewAnimationOptionAutoReverse.
Here is my code.
CALayer *aniLayer = act.viewToChange.layer;
[UIView animateWithDuration:2.0 delay:1.0 options:(UIViewAnimationC...
Falls asked 18/2, 2011 at 11:2
12
Solved
I've read the other posts on segues but none solve my question.
Simply put, my ViewControllers are ordered, like a book. I want backward transitions (example: from page 9 to 8) to always present ...
Clayberg asked 10/6, 2015 at 17:38
9
Solved
I'm running this code...
[UIView animateWithDuration:0.2
delay:0.0
options:UIViewAnimationOptionCurveEaseOut
animations:^{
CGAffineTransform settingsTransform = CGAffineTransformMakeTranslati...
Diazonium asked 21/9, 2012 at 17:53
4
Solved
I'm trying to do some animation when a table view cell gets selected. For some reason, the completion block is getting called way too early. Even setting the duration to 10 seconds, the completion ...
Examine asked 3/2, 2013 at 4:51
3
Given the spring parameters used in [UIView animateWithDuration:delay:usingSpringWithDamping:initialSpringVelocity:options:animations:completion:]:
usingSpringWithDamping
initialSpringVelocity
...
Aceto asked 3/12, 2013 at 11:20
22
Solved
My simple goal is to fade animate hiding and showing functions.
Button.hidden = YES;
Simple enough. However, is it possible to have it fade out rather than just disappearing? It looks rather unp...
Hortensiahorter asked 2/2, 2012 at 16:21
3
Solved
On my journey to learn more about SwiftUI, I am still getting confused with positioning my element in a ZStack.
The goal is "simple", I wanna have a text that will slide within a defined ...
Metropolitan asked 3/9, 2020 at 15:6
5
Solved
The UIKeyboardAnimationCurveUserInfoKey has a UIViewAnimationCurve value. How do I convert it to the corresponding UIViewAnimationOptions value for use with the options argument of +[UIView animate...
Howlet asked 6/9, 2011 at 23:17
1 Next >
© 2022 - 2024 — McMap. All rights reserved.