iphone Programming Glossary: setanimationduration
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present is shown dismissed void setViewMovedUp BOOL movedUp UIView beginAnimations nil context NULL UIView setAnimationDuration 0.3 if you want to slide up the view CGRect rect self.view.frame if movedUp 1. move the view's origin..
iPhone Keyboard Covers UITextField http://stackoverflow.com/questions/1247113/iphone-keyboard-covers-uitextfield UIView beginAnimations @ anim context nil UIView setAnimationBeginsFromCurrentState YES UIView setAnimationDuration movementDuration self.view.frame CGRectOffset self.view.frame 0 movement UIView commitAnimations share..
Custom animation for pushing a UIViewController http://stackoverflow.com/questions/1406037/custom-animation-for-pushing-a-uiviewcontroller coming.view.frame CGRectMake 160 160 0 0 UIView beginAnimations @ frame context nil UIView setAnimationDuration 4 UIView setAnimationCurve UIViewAnimationCurveEaseInOut coming viewWillAppear YES going viewWillAppear..
MD5 algorithm in Objective C http://stackoverflow.com/questions/1524604/md5-algorithm-in-objective-c
How can I customize an iOS alert view? http://stackoverflow.com/questions/2600779/how-can-i-customize-an-ios-alert-view 0.001 0.001 self.view.alpha 1.0 UIView beginAnimations nil context nil UIView setAnimationDuration kTransitionDuration 1.5 UIView setAnimationDelegate self UIView setAnimationDidStopSelector @selector.. UIView commitAnimations void bounce1AnimationStopped UIView beginAnimations nil context nil UIView setAnimationDuration kTransitionDuration 2 UIView setAnimationDelegate self UIView setAnimationDidStopSelector @selector.. UIView commitAnimations void bounce2AnimationStopped UIView beginAnimations nil context nil UIView setAnimationDuration kTransitionDuration 2 self.view.transform CGAffineTransformIdentity UIView commitAnimations I have the..
How to hide uitabbarcontroller http://stackoverflow.com/questions/5272290/how-to-hide-uitabbarcontroller void hideTabBar UITabBarController tabbarcontroller UIView beginAnimations nil context NULL UIView setAnimationDuration 0.5 for UIView view in tabbarcontroller.view.subviews if view isKindOfClass UITabBar class view setFrame.. showTabBar UITabBarController tabbarcontroller UIView beginAnimations nil context NULL UIView setAnimationDuration 0.5 for UIView view in tabbarcontroller.view.subviews NSLog @ @ view if view isKindOfClass UITabBar..
Cancel a UIView animation? http://stackoverflow.com/questions/554997/cancel-a-uiview-animation like this maybe setting an end animation action too UIView beginAnimations nil context NULL UIView setAnimationDuration duration UIView setAnimationCurve UIViewAnimationCurveLinear other animation properties set view properties.. this UIView beginAnimations nil context NULL UIView setAnimationBeginsFromCurrentState YES UIView setAnimationDuration 0.1 UIView setAnimationCurve UIViewAnimationCurveLinear other animation properties set view properties..
Locking the Fields in MFMailComposeViewController http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller 0 UIView beginAnimations @ Fade In context nil UIView setAnimationDelay 0 UIView setAnimationDuration .5 bgimage.alpha 1 loadingLabel.alpha 1 UIView commitAnimations self startSpinner bgimage release void.. the overlay out UIView beginAnimations @ Fade Out context nil UIView setAnimationDelay 0 UIView setAnimationDuration .5 bgimage.alpha 0 loadingLabel.alpha 0 UIView commitAnimations self stopSpinner void startSpinner spinner..
iPhone UIView Animation Best Practice http://stackoverflow.com/questions/630265/iphone-uiview-animation-best-practice snippets floating around the net that look like this UIView beginAnimations nil context nil UIView setAnimationDuration 0.75 UIView setAnimationDelegate self UIView setAnimationTransition UIViewAnimationTransitionFlipFromRight..
MKAnnotationView - Lock custom annotation view to pin on location updates http://stackoverflow.com/questions/6392931/mkannotationview-lock-custom-annotation-view-to-pin-on-location-updates true self.mapView regionThatFits region else UIView beginAnimations nil context NULL UIView setAnimationDuration 0.45 UIView setAnimationCurve UIViewAnimationCurveEaseInOut this moves my annotation view perfectly..
View Controllers: How to switch between views programmatically? http://stackoverflow.com/questions/910994/view-controllers-how-to-switch-between-views-programmatically viewDidAppear YES 3. now add animation UIView beginAnimations @ View Flip context nil UIView setAnimationDuration 1.25 UIView setAnimationCurve UIViewAnimationCurveEaseInOut blue view will appear by flipping from right..
how to create iphone's wobbling icon effect? http://stackoverflow.com/questions/929364/how-to-create-iphones-wobbling-icon-effect UIView setAnimationRepeatAutoreverses YES important UIView setAnimationRepeatCount 10 UIView setAnimationDuration 0.25 UIView setAnimationDelegate self UIView setAnimationDidStopSelector @selector wobbleEnded finished..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present YES method to move the view up down whenever the keyboard is shown dismissed void setViewMovedUp BOOL movedUp UIView beginAnimations nil context NULL UIView setAnimationDuration 0.3 if you want to slide up the view CGRect rect self.view.frame if movedUp 1. move the view's origin up so that the text field that will be hidden come above..
iPhone Keyboard Covers UITextField http://stackoverflow.com/questions/1247113/iphone-keyboard-covers-uitextfield
Custom animation for pushing a UIViewController http://stackoverflow.com/questions/1406037/custom-animation-for-pushing-a-uiviewcontroller code if coming.view superview nil self.view addSubview coming.view coming.view.frame CGRectMake 160 160 0 0 UIView beginAnimations @ frame context nil UIView setAnimationDuration 4 UIView setAnimationCurve UIViewAnimationCurveEaseInOut coming viewWillAppear YES going viewWillAppear YES coming.view.frame CGRectMake 0 0 320 480 going viewDidDisappear..
MD5 algorithm in Objective C http://stackoverflow.com/questions/1524604/md5-algorithm-in-objective-c
How can I customize an iOS alert view? http://stackoverflow.com/questions/2600779/how-can-i-customize-an-ios-alert-view self.view.transform CGAffineTransformScale CGAffineTransformIdentity 0.001 0.001 self.view.alpha 1.0 UIView beginAnimations nil context nil UIView setAnimationDuration kTransitionDuration 1.5 UIView setAnimationDelegate self UIView setAnimationDidStopSelector @selector bounce1AnimationStopped self.view.transform CGAffineTransformScale.. CGAffineTransformScale CGAffineTransformIdentity 1.1 1.1 UIView commitAnimations void bounce1AnimationStopped UIView beginAnimations nil context nil UIView setAnimationDuration kTransitionDuration 2 UIView setAnimationDelegate self UIView setAnimationDidStopSelector @selector bounce2AnimationStopped self.view.transform CGAffineTransformScale.. CGAffineTransformScale CGAffineTransformIdentity 0.9 0.9 UIView commitAnimations void bounce2AnimationStopped UIView beginAnimations nil context nil UIView setAnimationDuration kTransitionDuration 2 self.view.transform CGAffineTransformIdentity UIView commitAnimations I have the possibility of a short delay built into the class so initialDelayEnded..
How to hide uitabbarcontroller http://stackoverflow.com/questions/5272290/how-to-hide-uitabbarcontroller hideTabBar self.tabBarController Method implementations void hideTabBar UITabBarController tabbarcontroller UIView beginAnimations nil context NULL UIView setAnimationDuration 0.5 for UIView view in tabbarcontroller.view.subviews if view isKindOfClass UITabBar class view setFrame CGRectMake view.frame.origin.x 480 view.frame.size.width.. view.frame.size.width 480 UIView commitAnimations void showTabBar UITabBarController tabbarcontroller UIView beginAnimations nil context NULL UIView setAnimationDuration 0.5 for UIView view in tabbarcontroller.view.subviews NSLog @ @ view if view isKindOfClass UITabBar class view setFrame CGRectMake view.frame.origin.x 431 view.frame.size.width..
Cancel a UIView animation? http://stackoverflow.com/questions/554997/cancel-a-uiview-animation I have to drop to the CA level i.e. I've done something like this maybe setting an end animation action too UIView beginAnimations nil context NULL UIView setAnimationDuration duration UIView setAnimationCurve UIViewAnimationCurveLinear other animation properties set view properties UIView commitAnimations But before the animation completes..
Locking the Fields in MFMailComposeViewController http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller bgimage bgimage.alpha 0 bgimage addSubview loadingLabel loadingLabel.alpha 0 UIView beginAnimations @ Fade In context nil UIView setAnimationDelay 0 UIView setAnimationDuration .5 bgimage.alpha 1 loadingLabel.alpha 1 UIView commitAnimations self startSpinner bgimage release void removeWaitOverlay fade the overlay out UIView beginAnimations.. self startSpinner bgimage release void removeWaitOverlay fade the overlay out UIView beginAnimations @ Fade Out context nil UIView setAnimationDelay 0 UIView setAnimationDuration .5 bgimage.alpha 0 loadingLabel.alpha 0 UIView commitAnimations self stopSpinner void startSpinner spinner UIActivityIndicatorView alloc initWithActivityIndicatorStyle..
iPhone UIView Animation Best Practice http://stackoverflow.com/questions/630265/iphone-uiview-animation-best-practice forKey kCATransitionReveal but there are also code snippets floating around the net that look like this UIView beginAnimations nil context nil UIView setAnimationDuration 0.75 UIView setAnimationDelegate self UIView setAnimationTransition UIViewAnimationTransitionFlipFromRight forView myview cache YES myview removeFromSuperview UIView..
MKAnnotationView - Lock custom annotation view to pin on location updates http://stackoverflow.com/questions/6392931/mkannotationview-lock-custom-annotation-view-to-pin-on-location-updates self.mapView setRegion region animated true self.mapView regionThatFits region else UIView beginAnimations nil context NULL UIView setAnimationDuration 0.45 UIView setAnimationCurve UIViewAnimationCurveEaseInOut this moves my annotation view perfectly self.currentLocationAnnotation.coordinate coords this is where..
View Controllers: How to switch between views programmatically? http://stackoverflow.com/questions/910994/view-controllers-how-to-switch-between-views-programmatically 0 yellowViewController viewDidDisappear YES blueViewController viewDidAppear YES 3. now add animation UIView beginAnimations @ View Flip context nil UIView setAnimationDuration 1.25 UIView setAnimationCurve UIViewAnimationCurveEaseInOut blue view will appear by flipping from right if blueViewController.view.superview nil UIView setAnimationTransition..
how to create iphone's wobbling icon effect? http://stackoverflow.com/questions/929364/how-to-create-iphones-wobbling-icon-effect starting point UIView beginAnimations @ wobble context itemView UIView setAnimationRepeatAutoreverses YES important UIView setAnimationRepeatCount 10 UIView setAnimationDuration 0.25 UIView setAnimationDelegate self UIView setAnimationDidStopSelector @selector wobbleEnded finished context itemView.transform rightWobble end here auto reverse..
How to make a UITextField move up when keyboard is present http://stackoverflow.com/questions/1126726/how-to-make-a-uitextfield-move-up-when-keyboard-is-present the keyboard is shown dismissed void setViewMovedUp BOOL movedUp UIView beginAnimations nil context NULL UIView setAnimationDuration 0.3 if you want to slide up the view CGRect rect self.view.frame if movedUp 1. move the view's origin up so that the text..
iPhone Keyboard Covers UITextField http://stackoverflow.com/questions/1247113/iphone-keyboard-covers-uitextfield movementDistance UIView beginAnimations @ anim context nil UIView setAnimationBeginsFromCurrentState YES UIView setAnimationDuration movementDuration self.view.frame CGRectOffset self.view.frame 0 movement UIView commitAnimations share improve this answer..
Custom animation for pushing a UIViewController http://stackoverflow.com/questions/1406037/custom-animation-for-pushing-a-uiviewcontroller addSubview coming.view coming.view.frame CGRectMake 160 160 0 0 UIView beginAnimations @ frame context nil UIView setAnimationDuration 4 UIView setAnimationCurve UIViewAnimationCurveEaseInOut coming viewWillAppear YES going viewWillAppear YES coming.view.frame..
MD5 algorithm in Objective C http://stackoverflow.com/questions/1524604/md5-algorithm-in-objective-c
How can I customize an iOS alert view? http://stackoverflow.com/questions/2600779/how-can-i-customize-an-ios-alert-view CGAffineTransformIdentity 0.001 0.001 self.view.alpha 1.0 UIView beginAnimations nil context nil UIView setAnimationDuration kTransitionDuration 1.5 UIView setAnimationDelegate self UIView setAnimationDidStopSelector @selector bounce1AnimationStopped.. 1.1 1.1 UIView commitAnimations void bounce1AnimationStopped UIView beginAnimations nil context nil UIView setAnimationDuration kTransitionDuration 2 UIView setAnimationDelegate self UIView setAnimationDidStopSelector @selector bounce2AnimationStopped.. 0.9 0.9 UIView commitAnimations void bounce2AnimationStopped UIView beginAnimations nil context nil UIView setAnimationDuration kTransitionDuration 2 self.view.transform CGAffineTransformIdentity UIView commitAnimations I have the possibility of a..
UIKeyboardBoundsUserInfoKey is deprecated, what to use instead? http://stackoverflow.com/questions/2807339/uikeyboardboundsuserinfokey-is-deprecated-what-to-use-instead getValue keyboardEndFrame Animate up or down UIView beginAnimations nil context nil UIView setAnimationDuration animationDuration UIView setAnimationCurve animationCurve CGRect newFrame textView.frame CGRect keyboardFrame self.view..
How to hide uitabbarcontroller http://stackoverflow.com/questions/5272290/how-to-hide-uitabbarcontroller implementations void hideTabBar UITabBarController tabbarcontroller UIView beginAnimations nil context NULL UIView setAnimationDuration 0.5 for UIView view in tabbarcontroller.view.subviews if view isKindOfClass UITabBar class view setFrame CGRectMake view.frame.origin.x.. commitAnimations void showTabBar UITabBarController tabbarcontroller UIView beginAnimations nil context NULL UIView setAnimationDuration 0.5 for UIView view in tabbarcontroller.view.subviews NSLog @ @ view if view isKindOfClass UITabBar class view setFrame..
Cancel a UIView animation? http://stackoverflow.com/questions/554997/cancel-a-uiview-animation I've done something like this maybe setting an end animation action too UIView beginAnimations nil context NULL UIView setAnimationDuration duration UIView setAnimationCurve UIViewAnimationCurveLinear other animation properties set view properties UIView commitAnimations.. Looks something like this UIView beginAnimations nil context NULL UIView setAnimationBeginsFromCurrentState YES UIView setAnimationDuration 0.1 UIView setAnimationCurve UIViewAnimationCurveLinear other animation properties set view properties UIView commitAnimations..
Locking the Fields in MFMailComposeViewController http://stackoverflow.com/questions/6284599/locking-the-fields-in-mfmailcomposeviewcontroller loadingLabel loadingLabel.alpha 0 UIView beginAnimations @ Fade In context nil UIView setAnimationDelay 0 UIView setAnimationDuration .5 bgimage.alpha 1 loadingLabel.alpha 1 UIView commitAnimations self startSpinner bgimage release void removeWaitOverlay.. removeWaitOverlay fade the overlay out UIView beginAnimations @ Fade Out context nil UIView setAnimationDelay 0 UIView setAnimationDuration .5 bgimage.alpha 0 loadingLabel.alpha 0 UIView commitAnimations self stopSpinner void startSpinner spinner UIActivityIndicatorView..
iPhone UIView Animation Best Practice http://stackoverflow.com/questions/630265/iphone-uiview-animation-best-practice there are also code snippets floating around the net that look like this UIView beginAnimations nil context nil UIView setAnimationDuration 0.75 UIView setAnimationDelegate self UIView setAnimationTransition UIViewAnimationTransitionFlipFromRight forView myview..
MKAnnotationView - Lock custom annotation view to pin on location updates http://stackoverflow.com/questions/6392931/mkannotationview-lock-custom-annotation-view-to-pin-on-location-updates setRegion region animated true self.mapView regionThatFits region else UIView beginAnimations nil context NULL UIView setAnimationDuration 0.45 UIView setAnimationCurve UIViewAnimationCurveEaseInOut this moves my annotation view perfectly self.currentLocationAnnotation.coordinate..
How to use UIPanGestureRecognizer to move object? iPhone/iPad http://stackoverflow.com/questions/6672677/how-to-use-uipangesturerecognizer-to-move-object-iphone-ipad ABS velocityX .0002 .2 NSLog @ the duration is f animationDuration UIView beginAnimations nil context NULL UIView setAnimationDuration animationDuration UIView setAnimationCurve UIViewAnimationCurveEaseOut UIView setAnimationDelegate self UIView setAnimationDidStopSelector..
iOS SDK : playing music on the background and switching views http://stackoverflow.com/questions/8467533/ios-sdk-playing-music-on-the-background-and-switching-views alloc initWithNibName @ ScoreViewController bundle nil UIView beginAnimations nil context NULL UIView setAnimationDuration 1 UIView setAnimationTransition UIViewAnimationTransitionCurlDown forView self.view cache YES self.view addSubview scoreView.view..
View Controllers: How to switch between views programmatically? http://stackoverflow.com/questions/910994/view-controllers-how-to-switch-between-views-programmatically YES blueViewController viewDidAppear YES 3. now add animation UIView beginAnimations @ View Flip context nil UIView setAnimationDuration 1.25 UIView setAnimationCurve UIViewAnimationCurveEaseInOut blue view will appear by flipping from right if blueViewController.view.superview..
how to create iphone's wobbling icon effect? http://stackoverflow.com/questions/929364/how-to-create-iphones-wobbling-icon-effect @ wobble context itemView UIView setAnimationRepeatAutoreverses YES important UIView setAnimationRepeatCount 10 UIView setAnimationDuration 0.25 UIView setAnimationDelegate self UIView setAnimationDidStopSelector @selector wobbleEnded finished context itemView.transform..
|