forum

home / developersection / forums / how to print cgrect value using nslog?

How to print CGRect value using NSLog?

Anonymous User 2402 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