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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-06-2010, 08:14 PM   #6 (permalink)
meleader2
Registered Member
 
Join Date: Jul 2010
Posts: 22
meleader2 is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
I am not a very good proof-reader. If there are ANY differences in the parameters, names or capitalization of the method declaration, it won't get called. One thing I did notice is that your method declares the annotation property as type (id), and the method signature in the docs is for (id <MKAnnotation>), which is a pointer to an anonymous object that implements the <MKAnnotation> protocol. I don't think parameter type mismatches prevent methods from getting called (unlike C++) but I would change it anyway. In fact, I would suggest going to the XCode docs on the mapView:viewForAnnotation: method and copy and pasting the method declaration from the docs directly into your code.

BTW, set the breakpoint in the debugger at the beginning of your viewDidLoad again, and check the type of the gameMap instance variable. If it is pointing to some other object, that would do it.
I got it. Well my first issue is i shouldn't just be copying sensitive methods like that from the internet haha and my second issue was i was setting the delegate in the viewDidLoad method when I hadn't even instantiated it yet.

There is another view that loads the map when it is finally ready. after instantiation i then set the delegate to self and it worked. i hope google indexes this for others to follow.

i want the past 4 hours of my life back!

thanks again!!
meleader2 is offline   Reply With Quote
 

» Advertisements
» Online Users: 381
10 members and 371 guests
Chickenrig, Domele, earnestarvizo, erdinc27, EvilElf, georgiannuo53, ipodphone, LEARN2MAKE, linkmx, Mnadeep
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,581
Threads: 94,082
Posts: 402,770
Top Poster: BrianSlick (7,990)
Welcome to our newest member, georgiannuo53
Powered by vBadvanced CMPS v3.1.0

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