Created
February 12, 2012 11:17
-
-
Save mundstein/1808033 to your computer and use it in GitHub Desktop.
Log the frame changes of a custom view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// override this method to get a great log output | |
// to show how the view is resized when rotating, | |
// calling sizeToFit and other methods that affect the frame | |
- (void) setFrame:(CGRect)frame { | |
[super setFrame:frame]; | |
NSLog(@"%@ - %@", NSStringFromSelector(_cmd), NSStringFromCGRect(frame)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment