-
Archives
- January 2012
- October 2011
- August 2011
- December 2010
- November 2010
- September 2010
- August 2010
- July 2010
- June 2010
- April 2010
- March 2010
- February 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- May 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
-
Meta
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/…
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…
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…
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; …