Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-17-2009, 11:26 AM   #16 (permalink)
pwb
Registered Member
 
Join Date: Sep 2009
Posts: 2
Default

Quote:
Originally Posted by PhilSimpson View Post
Beta 2 seems to have broken pinColors. Mine all appear red now. I noticed that the span issue I was having was listed as being fixed in beta 2, but I'm still getting zooming out when using setRegion.

Anyone?
I'm replying to Phils comment because I think this code is potentially an answer to why all pins might appear red. I have the following code in my app, and it works. But can anyone tell me why it doesn't result in an infinite loop?

Code:
- (MKAnnotationView *)mapView:(MKMapView *)passedMapView viewForAnnotation:(id <MKAnnotation>)annotation { 
	MKAnnotationView *annotationView; 

	
	if ([annotation class] == [MKUserLocation class] ) { 
		NSLog(@"Detected UserLocationAnnotation"); 
        	annotationView = [passedMapView viewForAnnotation:annotation]; 
		[self doSomeStuffHere];
	} else { 
          // Do other stuff for custom Annotation 
        }
	return annotationView; 
}
pwb is offline   Reply With Quote
 

» Advertisements
» Online Users: 301
21 members and 280 guests
ADY, BrianSlick, Dani77, Desert Diva, Duncan C, ghost, HemiMG, ilmman, MarcoAlmeida, MarkC, Meoz, ngaikwad, Raffaello, Robiwan, Rudy, sly24, themathminister, timle8n1, wilky94
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,223
Posts: 380,730
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:50 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.