47

I am writing an app which displays a simple Apple Map across most of the screen. However, when I compare the speed of scrolling, there is a significant slow-down comparative to the native Apple Maps which come with iOS 6.

In my investigation of why, I noticed that the Facebook App (which also uses Apple Maps), the same performance hit is present.

This is most noticeable on iPhone 4 with iOS 6.

Does anyone know of a special view-related performance enhancing step or set of steps which I need to take to increase performance? I would like my maps to move as fluidly as the Apple Maps app.

Troy Alford
  • 26,660
  • 10
  • 64
  • 82
Moshe Marciano
  • 2,349
  • 4
  • 33
  • 44
  • I do have the same issue but until know there is nothing to fix this. Very bad!! it is very weird to see that apple's maps app don't have this performance issues. – David H. Mar 28 '13 at 16:01
  • We also have issues in our own app. Been trying several things, but no solution so far. Scrolling is relatively OK when dragging the map around, but as soon as I let go and the map should move on due to inertia, movement becomes very choppy. – Emiel Apr 05 '13 at 13:22
  • 2
    Noticed this myself in a 3rd party app, but I blamed the developer. Now when I create an empty project with a MKMapView I can see it has major performance issues when decelerating even on latest devices. Let's all submit a [bug report](https://bugreport.apple.com). – Filip Radelic Apr 05 '13 at 16:09
  • 7
    Apple's native app uses MKWorldView which is private API – Felix Apr 11 '13 at 22:48
  • Do you have a delegate or and annotations on the map? – Rog Apr 25 '13 at 07:03
  • I've seen this happen, the cache of the map isnt that great. try clearing it and see if that helps here is a code bit to help: NSURLCache *sharedCache = [[NSURLCache alloc] initWithMemoryCapacity:0 diskCapacity:0 diskPath:nil]; [NSURLCache setSharedURLCache:sharedCache]; [sharedCache release]; – thechrisberry May 03 '13 at 17:24
  • Did you solve this? Maybe someone going to WWDC can discuss with Apple. Can you upload a demo project? – David H May 05 '13 at 12:49

1 Answers1

1

I was having the same problem, and it looks like it could be due to having Development enabled on the device.

On the Apple Dev Forums I posted to ask about this for my problems (my post) and someone rightly reminded me that a lot of developers have been complaining about sluggish development devices.

So I went to the Organizer and Ignored my device from there, removing it as development enabled. I restarted the device and sure enough my MKMapView was a lot snappier. It was still sluggish at times, but the performance improved significantly.

Try it out for your device and see if you notice a difference.

enter image description here

Daniel
  • 23,129
  • 12
  • 109
  • 154
  • It didn't work for me. The performance of the map while scrooling was the same before and after I disabled it as you recommend on the screen. Also, building it in a Release mode didn't help. – Rafał Sroka May 30 '13 at 15:18