Skip to content
Browse files

Comment tweaks.

  • Loading branch information...
1 parent 130045c commit 6cb275a6ff8c305534361fefa36d8c02b0d2e910 @mattgemmell committed May 14, 2012
View
BIN ....xcodeproj/project.xcworkspace/xcuserdata/matt.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
2 MGTileMenu/MGTileMenuController.h
@@ -73,7 +73,7 @@ CGGradientRef MGCreateGradientWithColors(UIColor *topColorRGB, UIColor *bottomCo
- (CGRect)frameForCenteredTile;
- (UIImage *)tileBackgroundImageHighlighted:(BOOL)highlighted;
- (UIImage *)tileBackgroundImageForTile:(NSInteger)tileNumber highlighted:(BOOL)highlighted;
-- (void)tileActivated:(id)sender; // action for each tile is actually activated/chosen, switched on tag index.
+- (void)tileActivated:(id)sender; // action for when each tile is actually activated/chosen, switched on tag index.
- (void)tileSelected:(id)sender; // action for when each tile is highlighted, switched on tag index.
- (void)tileDeselected:(id)sender; // action for each tile is unhighlighted, switched on tag index.
- (void)animateTilesForCurrentPage;
View
3 MGTileMenu/MGTileMenuController.m
@@ -349,7 +349,7 @@ CGGradientRef MGCreateGradientWithColors(UIColor *topColorRGB, UIColor *bottomCo
CGGradientRef gradient = CGGradientCreateWithColorComponents(rgb, gradientColors, locations, 2);
CGColorSpaceRelease(rgb);
- return gradient;
+ return gradient; // follows the "Create rule"; i.e. must be released by caller (even with ARC)
}
@@ -901,7 +901,6 @@ - (void)animationDidStop:(CAAnimation *)animation finished:(BOOL)finished
- (void)animateTilesForCurrentPage
{
// Determine which animation (to or from centre) to perform.
- // Unneeded tiles are hidden and kept in the centre (without animation).
CGPoint centrePoint = MGCenterPoint([self frameForCenteredTile]);
CGPoint tileCentre;
CABasicAnimation *tileAnimation;

0 comments on commit 6cb275a

Please sign in to comment.
Something went wrong with that request. Please try again.