How to print the x,y width and height of UIView?
Following code can be used:
CGRect myFrame = myview_.frame; NSLog(@"height = %f", myFrame.size.height); NSLog(@"width = %f", myFrame.size.width); NSLog(@"x = %f", myFrame.origin.x); NSLog(@"y = %f", myFrame.origin.y);
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.