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 4557272
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:29:09+00:00 2026-05-21T17:29:09+00:00

so, I made my app and everything, and it has a few UI buttons

  • 0

so, I made my app and everything, and it has a few UI buttons with background images, which worked fine when it was on the computer and i was testing in iphone sim.
now, when i test on a real iphone, the buttons just show up as standard UICustomWhiteRect or whatever it is called.
here is the code i use to make them:

filepath = [[NSBundle mainBundle]
            pathForResource:@"button-half@2x" 
            ofType:@"png"];
[sendAsOneSMSButton setBackgroundImage:[UIImage imageWithContentsOfFile:filepath] forState:UIControlStateNormal];

i also have one for when it is pressed, which i set just like that. and just so no one asks me, the images for the buttons are both in my main folder the same folder my .xcodeproj file is in.
what could i be doing wrong?

SO:
they work in iPhone Simulator,
they show up as normal buttons without images on a real iPhone.

  • 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-21T17:29:09+00:00Added an answer on May 21, 2026 at 5:29 pm

    The first thing to check in a case like this is whether your images are really named “button-half@2x.png”, or if they are in fact “button-half@2x.PNG”, “button-half@2X.png”, or the like. The usual filesystem on OS X (and therefore on the simulator) is case-insensitive, while the filesystem on the device is case-sensitive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made a simple game for the iPhone using OpenGL ES. Everything works fine
I made an Android App in which I render everything with OpenGL-ES 2.0 and
I'm porting an Android app I made to iOS. Android has a Yield() function
I have made a program that has a Toolbar with a few actions on
I used to put everything in packages like this: com.company.app.module1 com.company.app.module2 But it has
We have a web app + web site, which has performance issues. I have
A desktop app (made in Delphi) is started by User A. Let's call it
First I made an app and I set its application icon to a icon
I have made an app that gets an array of addresses from a web
I am trying to get a web app made on Zend Framework up but

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.