Converting a CGPoint to NSValue

后端 未结 7 1901
猫巷女王i
猫巷女王i 2020-12-17 09:42

In CABasicAnimation.fromValue I want to convert a CGPoint to a \"class\" so I used NSValue valueWithPoint but in device m

7条回答
  •  温柔的废话
    2020-12-17 10:34

    There is a UIKit addition to NSValue that defines a function

    + (NSValue *)valueWithCGPoint:(CGPoint)point
    

    See iPhone doc

提交回复
热议问题