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 Details
When using hierarchical table views (e.g. with a Navigation Controller) to enter or edit information, the proper sequence of UI events can be surprisingly subtle. Consider what happens when you edit a phone number in the Contacts app: You click … Continue reading
Posted in iPhone
Comments Off
Focus! Focus!
Yesterday, I made reference to the contentVerticalAlignment property of UIControls. Upon further examination, it may not be such a good idea to use this property, for a somewhat surprising reason. If you look carefully at the screenshot to the left … Continue reading
Posted in iPhone
Comments Off
Vertical Alignment
Editorial Note: I’d been planning to write about glossy button backgrounds today, but I appear to be buttoned out. I’ll pick the topic up again by Friday, but, for now, something lighter. And shorter. Let’s say you want to adjust … Continue reading
Posted in iPhone
Comments Off
Shiny Red Buttons (5)
The gloss gradient code we saw on Tuesday has got a lot of fairly arbitrary math in it – including both constants and functions – that “tunes” the final appearance of the gradient. Today I want to walk through some … Continue reading
Posted in iPhone
Comments Off
Shiny Red Buttons (Digression)
Editorial Note: I was planning to discuss the gloss gradient code in detail today, with an eye to showing how some of its more arbitrary elements could be adjusted to alter the appearance of the gradients that it produces. Unfortunately, … Continue reading
Posted in iPhone
Comments Off
Shiny Red Buttons (4)
Today, we package the gloss gradient and rounded rect code we developed on Monday and Friday into a UIButton category, and take a quick look at adding labels to these buttons; the latter discussion is much simpler than I had … Continue reading
Posted in iPhone
Comments Off
Shiny Red Buttons (3)
Today, we’ll actually get around to the business of drawing some shiny pictures. We’ll be using Matt Gallagher’s gloss gradients code as a base, with some minor adjustments to allow for porting to the iPhone, and for personal taste. We’ll … Continue reading
Posted in iPhone
Comments Off
Shiny Red Buttons (2.5)
As promised, here are some test cases that exercise the rounded rect code presented yesterday. (If you want to study the results, click on the image to the left for a full-size screenshot.) Although only intended for testing, this code … Continue reading
Posted in iPhone
Comments Off
Shiny Red Buttons (2)
Today, we’ll see how to use Quartz 2D to generate rounded rectangles, either as outlines, or as clipped regions. We’ll begin with some background on Quartz technicalities, and then see some simple path generation code.
Posted in iPhone
Comments Off
Shiny Red Buttons (1)
One of the most striking elements of “modern” user interfaces is that half the buttons are so shiny that it’s a wonder magpies don’t break into your house and make off with your PC. This is all very pretty, but … Continue reading
Posted in iPhone
Comments Off