NSLog(@"%f",button.frame.origin.x); NSLog(@"%f",button.frame.origin.y);
No, this will not give you size, it will give you the x and y position of your button, button size:
NSLog(@"%f",button.frame.size.width); NSLog(@"%f",button.frame.size.height);
and you can get the center of your button, for example:
CGPoint center = [button center];
source share