Services
Find Stuff
Pages
Buy My Apps
Other Stuff I’ve Built
Book Club
Archives
- May 2018
- February 2014
- December 2013
- November 2013
- August 2012
- July 2012
- April 2012
- March 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
Categories
- Boxing (23)
- Energy (5)
- iPhone (142)
- Jack Handy (283)
- NaNoWriMo (3)
- People (11)
- Planet Microsoft (5)
- Projects (88)
- Python (43)
- Reelviews (13)
- Reverse Engineering (18)
- Six Word Stories (111)
- The Hard Way (3)
- Uncategorized (6)
- UNIX (8)
- Vacation Slides (30)
- Web stuff (51)
Blogroll
Category Archives: iPhone
Table View Scrolling
Today I want to cover a small problem with the UITableView method scrollToRowAtIndexPath:atScrollPosition:animated. This method doesn’t work quite properly when called from an out-of-the-box UITableViewController on a navigation controller’s stack. Some special setup is needed.
Posted in iPhone
Comments Off
Shared Code
While working on an iPhone app, I had occasion to create some ‘utility code’ – functions that were used by several view controllers, but that didn’t really belong to any one in particular. It wasn’t clear to me where this … Continue reading
Posted in iPhone
Comments Off
Transactions
I’ve become a big fan of SQLite on the iPhone. One nice feature of SQLite is its transaction support; this lets you commit application state changes to disk in an “all-or-nothing” manner. To use transactions effectively, however, you may need … Continue reading
Posted in iPhone
Comments Off
navigationController
Today, a quick note on an iPhone gotcha that recently bit me. The short version is that a UIViewControler’s navigationController property is cleared when that view controller is removed from its nav. controller, which can trip you up if you’re … Continue reading
Posted in iPhone
Comments Off
Quickie – Two Useful Classes
UIActionSheets and UIAlertViews are two slightly obscure but very handy classes that can give your iPhone app a more polished appearance with very little effort. They’re worth the few minutes it takes to read up on them.
Posted in iPhone
Comments Off
Pointers
If you work with C, or C++, or Objective-C (or C#, boo, hiss) you work with pointers. Today, I want to argue that the way everyone else declares and thinks about pointers is wrong, wrong, wrong!
Posted in iPhone
Comments Off
Shiny Red Buttons (6.2)
Last week we began to look in detail at the backgrounds of some of the iPhone’s built-in shiny buttons. We saw that those backgrounds were really simulated 3-D grooves in the control’s parent’s surface, and that they were comprised of … Continue reading
Posted in iPhone
Comments Off
SQLite Gotcha
Working with SQLite on the iPhone, I ran across a strange (to me, anyway) interaction between prepared statements and transactions. This interaction (which I’m not sure it would be fair to call a “bug”) was causing DB writes to take … Continue reading
Posted in iPhone
Comments Off
iPhone and SQLite
Although Apple’s documentation doesn’t make too much of the point, the iPhone offers full support for SQLite. If you’re comfortable with DBs, this can be a timesaver, even for some problems for which a DB might seem like overkill. (In … Continue reading
Posted in iPhone
Comments Off
Shiny Red Buttons (6.1)
Editorial note: This is the first of several posts covering shiny button backgrounds. I’m breaking the topic up in order to keep the posts shorter. Also, today’s post is up a little late, due to another project. My apologies. If … Continue reading
Posted in iPhone
Comments Off