Tutorial details

Changing Images | App Code for Sale | Preview

Changing Images | iOS Tutorial

How to change images

Overview PAGE TOP

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

In this tutorial i will be showing you how to change images


  • 1 UIImageview
  • 4 Round rect button

this is a great way for users to explore and showing more content with your app by changing images

ViewController.h PAGE TOP

@interface ViewController :UIViewController {
IBOutlet UIImageView *imageview;

ViewController.m PAGE TOP

@implementation ViewController
-(IBAction)show1 {
UIImage *img = [UIImage imageNamed:@"image1.png"];
    [imageview setImage:img];
-(IBAction)show2 {
UIImage *img = [UIImage imageNamed:@"image2.png"];
    [imageview setImage:img];  
-(IBAction)show3 {
UIImage *img = [UIImage imageNamed:@"image3.png"];
    [imageview setImage:img];
-(IBAction)hide {
UIImage *img = [UIImage imageNamed:@""];
    [imageview setImage:img];

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.