Monthly Archives: March 2010

Making annotations fit on a Map View.

After struggling with formulae that convert degrees longitude and latitude to meters, I found a much better way to get annotations to fit on a Map View, thanks to this site:

http://codisllc.com/blog/zoom-mkmapview-to-fit-annotations/

Posted in iPhone Development, Programming | Tagged | Leave a comment

Helpful Core Data debugging

Core Data is really great, but if your app crashes without warning it can be a major headache. Replacing the default error handling code with this more involved approach saved me hours of time debugging:

http://www.designcodeexecute.com/2009/08/28/iphone-sdk-coredata-debugging-error-1560-1570

Posted in iPhone Development, Programming | Tagged | Leave a comment

Can not use an object as parameter to a method (Obj-C errors, part 2)

This is an easy one to seasoned X-coders, but one that tripped me up a few times when I first got started.

BAD CODE:

-(void) makePhotoFromImage: (UIImage )image;

ERROR:

can not use an object as parameter to a method

TRANSLATION…

Posted in Objective C error translation series, Programming | Leave a comment

Objective C compiler errors: translations for newbs

I’m pretty new at Xcode and Objective C, so there may not be a one-to-one correspondence here between errors and the most probable cause, but this helps me so it may help you.

This will be a work in progress; …

Posted in iPhone Development, Objective C error translation series, Programming | Leave a comment