-
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
Category Archives: Programming
Drawing Text on an Arc in CocoaTouch
CoreText is available now in iOS, but it’s not an easy framework to use. After trying several other approaches to draw text on an arc at this Stack Overflow page, I adapted Apple’s sample code CoreTextArcCocoa for Mac …
Posted in iPhone Development, Programming
Tagged apple, Core Text, iOS4, iPhone Development, Objective-C
Leave a comment
How to get the Return key to dismiss a UITextView
Need to dismiss they keyboard in a UITextView? Changing the Return key to read “Done” doesn’t make the iPhone keyboard to go away. Put this code in the delegate for your UITextView and your return key can behave more like …
Posted in iPhone Development, Programming
Tagged iPhone Development, Objective-C, UITextView
2 Comments
plist > JSON > XML
Having developed 4 or 5 iPhone apps now that download remote XML data from servers and populate tables view and other content, I can tell you without reservation that it is the slowest way to go.
Performance using JSON is …
Posted in iPhone Development, Programming
Tagged iPhone Development, JSON, mySQL, Objective-C, PHP, XML
Leave a comment
How To Place a UIWebView inside a UIScrollView
To display several pieces of content on a screen, I needed several views. A scroll view (UIScrollView) was necessary to encompass the headline, photo and story text; I had the headline and photo at the top in a …
Posted in iPhone Development, Programming
Tagged iOS, iPhone Development, Objective-C, UIScrollView, UIWebView
10 Comments
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; …
Dump mySQL database design into OmniGraffle
Check out this blog entry on Designweenie if you are a Mac user that uses OmniGraffle to design mySQL databases.
One important note: you will need to run AppleScript Editor in 32-bit mode if you are using Snow Leopard (Mac …
Posted in Programming
Leave a comment
mySQL to SQLite cheatsheet for iPhone developers
Although I started writing this as a cheat-sheet for myself (after many hours of struggling with this by trial-and-error), I figured it would be helpful for other iPhone developers who’d like to take a mySQL database online and migrate it …
Posted in iPhone Development, Programming
Tagged apple, Core Data, database, iPhone Development, Mac, mySQL, SQLite
10 Comments