Skip to content

Commit

Permalink
[catalog] Better docs for the snapshot rotation table view controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Aug 9, 2012
1 parent 867b532 commit aceb6f7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil

// We must provide the snapshot rotation object a delegate so that it knows which view to
// snapshot rotate.
// Note here that we're creating a NITableViewSnapshotRotation version of NISnapshotRotation.
// This subclass of NISnapshotRotation handles UITableViews specifically by creating a resizing
// snapshot that cuts off along a vertical line between the contentView and the accessoryView.
// The standard NISnapshotRotation object, on the other hand, will simply snapshot the entire
// rotating view without a vertical divider.
_snapshotRotation = [[NITableViewSnapshotRotation alloc] initWithDelegate:self];

NICellDrawRectBlock drawTextBlock = ^CGFloat(CGRect rect, id object, UITableViewCell *cell) {
Expand Down

0 comments on commit aceb6f7

Please sign in to comment.