back soft

مطالب مرتبط با «assigning to cgpoint from incompatible type cgfloat» در back soft | نویسنده: استخدام کار

Assigning to 'CGPoint' (aka 'struct CGPoint') from incompatible type 'id'

Vote count: 0 I have a NSMutableArray with CGPoint and when i try to add one of object to my CGPoint variable i have this error: Assigning to 'CGPoint' (aka 'struct CGPoint') from incompatible type 'id' targetView.center = [arrayWithCoord objectAtIndex:1]; But i try the way which Xcode offer me: targetView.center = *((__bridge CGPoint *)([arrayWithCoord objectAtIndex:1])); And also i try something like this: targetView.center = ((NSValue *)arrayWithCoord[0]).CGPointValue; and all of this case i ...

ادامه مطلب