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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:17:05+00:00 2026-05-20T10:17:05+00:00

My problem occurs only on iPad. There is always unrendered portion of MKMapView(right side

  • 0

My problem occurs only on iPad. There is always unrendered portion of MKMapView(right side on the picture below). As soon as I touch this window the mapview repaints itself just fine. But it never renders correctly right away. This problem occures in iOS 4.2 as well as in iOS 3.2 in Simulator and the Device. The code that constructs MKMapView is right below:

- (void)viewDidLoad {
      [super viewDidLoad];  
      mapview = [[[MKMapView alloc] initWithFrame:CGRectMake(0,0,self.view.frame.size.width,230)] autorelease]; // because of apples bug
      mapview.autoresizingMask = UIViewAutoresizingFlexibleWidth;
      MKCoordinateSpan globe = MKCoordinateSpanMake(100, 100);

      CLLocationCoordinate2D worldCenter; worldCenter.latitude = 42.032974; worldCenter.longitude =21.359375;

      MKCoordinateRegion worldmap = MKCoordinateRegionMake(worldCenter, globe);
      mapview.region = worldmap;
      mapview.zoomEnabled = NO;
      mapview.showsUserLocation = YES;
      mapview.delegate = self;

      NSRange theRange;
      theRange.location = 1;
      theRange.length = [annotations count]-1;

      [mapview addAnnotations:[annotations subarrayWithRange:theRange]];
      [self.view addSubview:mapview];   
}

The problem manifests itself only in Landscape orientation.

Incorrect span
UPDATE

This is how it spans after I touched the view.
Correct span

  • 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-20T10:17:06+00:00Added an answer on May 20, 2026 at 10:17 am

    I did a quick test with your code and get the same result (which I expected). I still think it is not an issue with the map itself but with the way you are setting your center coordinates plus map span. You’re trying to center the map too far to the left with max span and the only way for the map to fill the entire screen and maintain the center point would be for it to stretch itself, which is not desirable. If you set lat and long to 0 you get the same view without the missing part.

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

Sidebar

Related Questions

UPDATE: I've realized that the below problem only occurs if the user has already
A strange problem only occurs on iOS 6.0. In iPad portrait mode of an
Note: This problem occurs only on Mac, on Windows works fine. I have a
I have a problem that occurs only in a production environment, deployed at heroku.
I'm having trouble getting the position of an address. However, this problem occurs only
I am experiencing a strange problem with asp.net forms authentication. This problem only occurs
This problem only occurs using IE (only tested in IE 7, works fine in
The problem only occurs on a server with Windows 2008 Server, locally I run
(Problem occur in Ubuntu only. Works fine in Windows. I don't know in other
The problem occurs when I do a division operation. I would like to know

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.