Tutorial details

Hiding Buttons | App Code for Sale | Preview

Hiding Buttons | iOS Tutorial

How to hide buttons

Overview PAGE TOP

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

In this tutorial i will be showing you how to hide buttons

Features:

  • 11 Round Rect Buttons

In this tutorial i will be showing you how you can hide and reveal buttons this is a great feature as it will help with design rather than having a crowded screen or you can use it to act as a reward by unlocking features

ViewController.h PAGE TOP

@interface ViewController :UIViewController {
IBOutlet UIButton *button1;
IBOutlet UIButton *button2;
IBOutlet UIButton *button3;
}
-(IBAction)hide1;
-(IBAction)hide2;
-(IBAction)hide3;
-(IBAction)reveal1;
-(IBAction)reveal2;
-(IBAction)reveal3;
-(IBAction)hideall;
-(IBAction)revealall;
@end

ViewConroller.m PAGE TOP

@implementation ViewController
-(IBAction)hide1 {
button1.hidden = YES;
}
-(IBAction)hide2 {
button2.hidden = YES;
}
-(IBAction)hide3 {
button3.hidden = YES;
}
-(IBAction)reveal1 {
button1.hidden = NO;
}
-(IBAction)reveal2 {
button2.hidden = NO;
}
-(IBAction)reveal3 {
button3.hidden = NO;
}
-(IBAction)hideall {
button1.hidden = YES;
button2.hidden = YES;
button3.hidden = YES;
}
-(IBAction)revealall {
button1.hidden = NO;
button2.hidden = NO;
button3.hidden = NO;
}
@end

Reference PAGE TOP

http://www.geekylemon.com/WEBPROTECT-xcodetutorialhidebutt.htm

0 Comments Leave a comment

Please login in order to leave a comment.

Newest first
!

Sign-in 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.