Tutorial details

Fading Button, Labels And TextFields | App Code for Sale | Preview

Fading Button, Labels And TextFields | iOS Tutorial

How to fade buttons, labels and textfields

Overview PAGE TOP

Reference: http://www.geekylemon.com/WEBPROTECT-xcodefadingbuttons.htm

In this tutorial i will be showing you how to fade buttons, labels and textfields


  • 2 Round Rect Buttons
  • 1 UILabel
  • 1 UITextField

Fading out object can be very useful for example display hiding or displaying text which you cannot fit on the screen or disabling buttons or enabling then the possibilities are endless with fading

ViewController.h PAGE TOP

@interface ViewController :UIViewController {
IBOutlet UILabel *label;
IBOutlet UIButton *button;
IBOutlet UITextView *textview;

ViewController.m PAGE TOP

@implementation ViewController
-(IBAction)fade {
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:1.0];
    [label setAlpha:0];
    [button setAlpha:0];
    [textview setAlpha:0];
    [UIView commitAnimations];

Reference PAGE TOP


0 Comments Leave a comment

Please login in order to leave a comment.

Newest first

to your Chupamobile Account.

The Easiest way to Launch your next App or Game.

Join Chupamobile and get instant access to thousands of ready made App and Game Templates.

Creating an account means you’re okay with Chupamobile’s Terms of Service and Privacy Policy.