Skip to content
Tags

Logging CGPoint

July 3, 2010

The best way to log CGPoint is to use the following :

CGPoint  point= CGPointMake(5,10);

NSLog(@”Point : %@”, NSStringFromCGPoint(point));

Another way to do is to use NSValue:

NSLog(@”Point :%@”, [NSValue valueWithCGPoint:point]));

Thanks and bye.

Advertisements

From → iPhone

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: