Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3235954
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:33:57+00:00 2026-05-17T17:33:57+00:00

I am trying to make a button in my IPhone app which changes an

  • 0

I am trying to make a button in my IPhone app which changes an existing image (simple, I know! but I’ve spent 2 days on this 🙂

I have a button:

- (IBAction)myButton {  
    myUIImageView.image = [UIImage imageNamed:@"image.jpg"];
    NSLog(@"my button");
}

I am attempting to find out why the button is not doing anything. “my button” does get logged to the console so I know its mapped correctly. Firstly, I was hoping someone could tell me if I could perhaps log some more important info here, like the image file path? Or perhaps you see why this isn’t working.

I synthesize myUIImageView above this:

@synthesize myUIImageView;

And I declare it in my .h file:

- (IBAction)myButton;
    @property(retain, nonatomic) IBOutlet UIImageView* myUIImageView;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:33:58+00:00Added an answer on May 17, 2026 at 5:33 pm

    Two things to try:

    1. Make sure that your UIImageView is
      actually being displayed. Do do this, just set its background color to something
      visible, e.g.,
      myUIImageView.backgroundColor =
      [UIColor redColor];
      .
    2. Make sure that your image file
      (“image.jpg”) is part of your
      project.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I’m trying to make a button that displays an image, that’s easy, but the
I'm a beginner to Iphone Development :) I am trying to make a button
I am trying to make a lite version to my iPhone App. I followed
I am trying to make a button that is invisible but that can still
I am trying to make shutdown button using CSS3 similar to this picture http://static.desktopnexus.com/thumbnails/25080-bigthumbnail.jpg
So I was trying to make a button that will change image when mouse
I am trying to make a button in Excel which copies a certain range
I am trying to make this button disable the two other buttons and execute
I'm trying to make a button which glows when the mouse is pointed over
Just trying to make a button that links in ratings tab in app store

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.