forum

Home / DeveloperSection / Forums / How to print CGRect value using NSLog?

How to print CGRect value using NSLog?

Anonymous User 1759 18-Jan-2016

I want to know how can I print CGRect attributes(frame) values on console using NSLog() method.
I tried to see properties of CGRect, like this:

NSLog(@"CGRect Value: %@", rect);

But, I got error which will says CGRect is not an id type. So, how can I print the frame of CGRect for getting attributes.


Updated on 18-Jan-2016
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By