Tutorial details

Changing The Background Colour | App Code for Sale | Preview

Changing The Background Colour | iOS Tutorial

How to change the background colour of your apps

Overview PAGE TOP

Reference: http://www.geekylemon.com/xcode-background-colour

In this tutorial i will be showing you how to change the background colour of your apps


  • 8 UIButton

This feature is great for letting the user customise your app and by changing the background colour it makes them feel that they can make the app there own or even customise view and change the look to suite mood moments in your apps

ViewController.h PAGE TOP

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController {
- (IBAction)red;
- (IBAction)yellow;
- (IBAction)pink;
- (IBAction)green;
- (IBAction)blue;
- (IBAction)white;
- (IBAction)grey;
- (IBAction)black;

ViewController.m PAGE TOP

@implementation ViewController

- (IBAction)red {
self.view.backgroundColor = [UIColor redColor];

- (IBAction)yellow {
self.view.backgroundColor = [UIColor yellowColor];

- (IBAction)pink {
self.view.backgroundColor = [UIColor purpleColor];

- (IBAction)green {
self.view.backgroundColor = [UIColor greenColor];

- (IBAction)blue {
self.view.backgroundColor = [UIColor blueColor];

- (IBAction)white {
self.view.backgroundColor = [UIColor whiteColor];

- (IBAction)grey {
self.view.backgroundColor = [UIColor grayColor];

- (IBAction)black {
self.view.backgroundColor = [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.