Shrinking Tables! (As seen in Spotlight)
Want to create tables as seen in Spotlight or Weather? It’s easier done than said : )
Note, this uses the Spotlight “cheater” method of simply drawing some pseudo corners over the table, as opposed to the Weather.app approach of masking off the table to remove corners. That said, as long as you’re using solid colors, the result will be identical.
First off, we want to open a new view controller based application. and slap in a simple UITableView with the grouped style. Go ahead and add the UITableView as a subview of your viewController.view.
Next, we’ll place a call our getCornersforRect:withColor: message. This will construct a UIImage of the corners that we want to apply. That image will be added to a new UIImageView that will be added on top of our UITableView. Read more
