Tutorial details

UIViews | App Code for Sale | Preview

UIViews | iOS Tutorial

How to use uiviews

Overview PAGE TOP

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

In this tutorial i will be showing you how to use uiviews

Features:

  • 4 Buttons
  • 2 Views

Using UIViews in your apps can help display information or extra content to the user if you are unable to display it on the current view also a alternative way of switching views

ViewController.h PAGE TOP

@interface ViewController :UIViewController {
IBOutlet UIView *view1;
IBOutlet UIView *view2;
}
-(IBAction)DisplayView1;
-(IBAction)DisplayView2;
-(IBAction)HideView1;
-(IBAction)HideView2;
@end

ViewController.m PAGE TOP

@implementation ViewController
-(IBAction)DisplayView1 {
view1.hidden = NO;
}
-(IBAction)HideView1 {
view1.hidden = YES;
}
-(IBAction)DisplayView2 {
view2.hidden = NO;
}
-(IBAction)HideView2 {
view2.hidden = YES;
} 
@end

Reference PAGE TOP

http://www.geekylemon.com/WEBPROTECT-xcodeuiviews.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.