I have written a very simple iPhone app that should put pins on a Map showing Hazards on a Post Run, the data for the annotations has been stored in a MySQL Database and i've used JSON to export the data and convert it to NSStrings, I have changed two of these NSStrings to doubles because these were needed for my annotation latitude and longitude, When i build my code i have no issues but when i try and run it on an iPhone or Simulator it crashes with the following error log in the console:
2013-04-25 09:04:43.628 RoyalMailApp[6596:c07] -[Hazards setCoordinate:]: unrecognized selector sent to instance 0x8c63a60
2013-04-25 09:04:43.629 RoyalMailApp[6596:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Hazards setCoordinate:]: unrecognized selector sent to instance 0x8c63a60'
*** First throw call stack:
(0x1b3c012 0x1458e7e 0x1bc74bd 0x146c7ea 0x1b2bcf9 0x1b2b94e 0x2698 0x47e1c7 0x47e232 0x3cd3d5 0x3cd76f 0x3cd905 0x3d6917 0x39a96c 0x39b94b 0x3accb5 0x3adbeb 0x39f698 0x1a97df9 0x1a97ad0 0x1ab1bf5 0x1ab1962 0x1ae2bb6 0x1ae1f44 0x1ae1e1b 0x39b17a 0x39cffc 0x215d 0x2085 0x1)
libc++[url removed, login to view]: terminate called throwing an exception
If you feel this is something you could fix for me please get in touch, or if you should need more samples of my small code files just ask, also the app has updates to be made after this so i will be needing more help in the next few weeks. I look forward to hearing from yourselves.
10 freelancer bu iş için ortalamada 145£ teklif veriyor
Hi, Your Hazards object should implement MKAnnotation protocol. One of the methods for this protocol is a CLLocationCoordinate what consists of latitude and longitude. It's a quick fix.
Kia ora! [url removed, login to view] are a NZ based web and software design company who have seen you here on the freelance market and are really excited about working with you and treating you to the full service, professional ex Daha fazlası