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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T07:30:15+00:00 2026-06-02T07:30:15+00:00

I am in the process of testing my iOS application, everything goes smoothly on

  • 0

I am in the process of testing my iOS application, everything goes smoothly on the iOS Simulator (of course), but when I test on the Physical Device, some strange things start happening.

I have an image inside of a UIImageView, and I am using it as the pop-over background. When I run the app on the device, it appears as a black and white striped image.

There are no errors, no warnings, no memory problems (as far as I know), and nothing ever shows up in the Debug windows.

This is the image that appears:
White/Black striped popover

My original image is mainly of a dark grey tone with pattern. It is saved as a PNG and is copied into my project. It’s even under source control. What makes it even stranger is that when I change the image to something completely different, it works.

I’ve renamed, re-imported, etc. Nothing seems to work.

Any ideas? Where is this white/black image coming from? How can I fix this?

  • 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-06-02T07:30:16+00:00Added an answer on June 2, 2026 at 7:30 am

    The PNG your application loads is not a byte-for-byte copy of the PNG you added to the application bundle. XCode makes some changes to it, putting the channels in BGR order and messing with the alpha. See this post on iPhone “Optimized” PNGs.

    This is speculation, but some property of your image – the channel order, bit depth, alpha, or similar – may not be what XCode assumes. Then it would end up swapping channel values it shouldn’t, corrupting the image. (If your image is grayscale, with one channel, that alone shouldn’t be the problem, however.)

    Try creating a new, blank image in the same size as your original, then copy the contents of your background image into the new one. If your image is opaque, make sure it has no alpha channel.

    You might also like to open your problem image in Preview, and select ‘View’ -> ‘Show Inspector’. I’ve attached the sort of information I see on images that do work.

    Preview Inspector showing General tab

    Preview Inspector showing PNG tab

    Edit: it is possible to prevent XCode altering your files. In your ‘Build Settings’, under ‘Packaging’, there is the option to ‘Compress PNG Files’. Switch this off if you need the PNG files in your project duplicated exactly. Your app will take more time to load images, but you may be able to compress your PNG files into smaller sizes. See Xcode’s built-in (de)optimization.

    enter image description here

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

Sidebar

Related Questions

I'm in the process of doing some advance IE8 testing, and it seems that
I'm trying to get Deleporter to do some cross process integration testing. The tests
Anybody out there have experience testing out of process assemblies? I'm testing some Com+
I'm in the process of testing an application that takes mail out of a
I am in the process of testing some error handling code and am trying
I'm in the process of testing an application and it's database and for this
I have a WPF Application. It´s for testing a process. I start this over
I'm in the process of researching testing options for .Net development particularly ASP.Net. What
I was just testing the process of migration of data from M/S to HRD,
I have a problem executing a process from our testing server. On my localhost

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.