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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:48:36+00:00 2026-06-08T05:48:36+00:00

I have a very strange problem in my app which only happen on Retina

  • 0

I have a very strange problem in my app which only happen on Retina display and not simulator.

I developped a set of applications with embedded openstreetmaps tiles (pieces of map).

In each app, I have a lot of pieces of map (256px/256px) that I display in a UIScrollView.
It works perfectly on non-retina devices and on retina simulator.

The problem : each tile appear with the last row of pixel in a randow color (most time it’s black)

To illustrate, I made to screenshot of the same place, with device and simulator. They are grouped in one picture :

enter image description here

You can see that the black pixel line is not out of the tile, but in the tile last pixel line (cause no shift beetwen the two screens)

More strange even : sometimes, when little color variation are in the tile, the pixel line take the color of a random element, and sometimes it doesn’t appear at all !

enter image description here

Here, blue line, gray lines, black lines…..

EDIT :

I simplified a lot the code, and the glitch stays with only this 2-tiles loading :

int W = 256;
int H = 256;
NSString * map1 = [[NSBundle mainBundle] pathForResource:@"test1.png" ofType:nil];
NSString * map2 = [[NSBundle mainBundle] pathForResource:@"test2.png" ofType:nil];
UIImageView * pieceOfMap1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, H*0, W, H)];
UIImageView * pieceOfMap2 = [[UIImageView alloc] initWithFrame:CGRectMake(0, H*1, W, H)];
[pieceOfMap1 setImage:[UIImage imageWithContentsOfFile:map1]];
[pieceOfMap2 setImage:[UIImage imageWithContentsOfFile:map2]];
[self.view addSubview:pieceOfMap1];
[self.view addSubview:pieceOfMap2];

I tryed with 128×128 @2x tiles, but the problem persists !
Could it come from OpenStreetMaps images ?

My two tiles are downloadable here : http://dl.free.fr/n08C6JIqW

  • 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-08T05:48:40+00:00Added an answer on June 8, 2026 at 5:48 am

    Okay.

    I just open the two test tiles in photoshop, made no change, then saved again in png.

    The black line doesn’t appear anymore.

    So it comes from the open street map PNG images (to get one of them, go to http://www.openstreetmap.org/, right clic on the map, then save image)

    The problem is partly explained, but now I have 2067 files to photoshop…

    I googled it, but I found nothing which would explain something…

    If no other explanation, i will accept my own answer, but if someone give me something to understand why, I would be glad.

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

Sidebar

Related Questions

We have encountered a very strange class not found problem in our web app
I have a very strange problem in which identical pieces of Javascript are behaving
I have a very strange problem with an angular app we are building. Whenever
This is a very strange problem. I've got a rails app in which I
This error very strange. I have a bunch of properties in app delegate which
I have a strange problem with my app, sometimes, very rare in fact, when
I've got a very strange problem recently. I have a code which processes inApp
I have a strange problem in my android app. I have an activity which
Hi I have a very strange problem in the simulator works perfect but when
Very strange problem with my iPhone App. We have an App that has been

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.