views:

1241

answers:

2

My code:

CGPoint *tp_1 = CGPointMake(160, 240);

gives an "Incompatible types in initialization" error... why is this??

A: 

Looks like CGPointMake isn't returning a pointer.

Stefan Kendall
+7  A: 

CGPointMake returns a struct, not a pointer to a struct. So the correct code is:

CGPoint tp_1 = CGPointMake(160, 240);
mipadi