Wednesday, February 1, 2012

How to print the Frame(CGRect) of a View?

    NSLog(@"self.view.Frame=%@", NSStringFromCGRect(self.view.frame));

Here self.view is the view of UIView Class. You can print any frame with this log.

No comments:

Post a Comment