MKMapView Not Loading When Called on an NSThread?
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-04-15T19:55:35Z
Indexed on
2010/04/15
20:03 UTC
Read the original article
Hit count: 521
I am creating a MKMapView in a method named "generateMap". From inside viewDidLoad, this works:
[self generateMap];
but this causes the map to quickly load and then disappear, leaving only the blank grey grid:
[NSThread detachNewThreadSelector:@selector(spinTheSpinner) toTarget:self withObject:nil];
Any ideas why this might be happening when I call the method through a thread?
© Stack Overflow or respective owner