Tutorial details

Hiding Outlets | App Code for Sale | Preview

Hiding Outlets | iOS Tutorial

How to hide outlets

Overview PAGE TOP

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

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


  • 2 Round Rect Buttons
  • 2 UITextFields
  • 2 UILabels
  • 1 UiNavigationBar
  • 1 TextView

Hiding outlets is great to reveal extra content hidden on the screen or to hide content when its no longer needed its very easy so i hope you enjoy

ViewController.h PAGE TOP

@interface ViewController :UIViewController {
IBOutlet UITextField *textfield1;
IBOutlet UITextField *textfield2;
IBOutlet UILabel *label1;
IBOutlet UILabel *label2;
IBOutlet UINavigationBar *navbar;
IBOutlet UITextView *textview;

ViewController.m PAGE TOP

@implementation ViewController
-(IBAction)hideall {
textfield1.hidden = YES;
textfield2.hidden = YES;
label1.hidden = YES;
label2.hidden = YES;
navbar.hidden = YES;
textview.hidden = YES;
-(IBAction)revealall {
textfield1.hidden = NO;
textfield2.hidden = NO;
label1.hidden = NO;
label2.hidden = NO;
navbar.hidden = NO;
textview.hidden = NO;

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.