Tutorial details

Changing Text Colour With Buttons | App Code for Sale | Preview

Changing Text Colour With Buttons | iOS Tutorial

How to change text colour with buttons

Overview PAGE TOP

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

In this tutorial i will be showing you how to change text colour with buttons


  • 1 Textfield
  • 1 Label
  • 1 Textview
  • 4 Round rect button

Using textfields in projects are essential for data apps that can help the user input there own data to add to the app or input data to function the app in this tutorial i show you how to input data and send it to display on a label .

ViewController.h PAGE TOP

@interface ViewController :UIViewController {
IBOutlet UILabel *label;
IBOutlet UITextField *textfield;
IBOutlet UITextView *textview;

ViewController.m PAGE TOP

@implementation ViewController
-(IBAction)red {
label.textColor = [UIColor redColor];
textview.textColor = [UIColor redColor];
textfield.textColor = [UIColor redColor];
-(IBAction)blue {
label.textColor = [UIColor blueColor];
textview.textColor = [UIColor blueColor];
textfield.textColor = [UIColor blueColor];
-(IBAction)green {
label.textColor = [UIColor greenColor];
textview.textColor = [UIColor greenColor];
textfield.textColor = [UIColor greenColor];
-(IBAction)black {
label.textColor = [UIColor blackColor];
textview.textColor = [UIColor blackColor];
textfield.textColor = [UIColor blackColor];

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.