CGMutablePathRef to NSMutableArray

后端 未结 2 450
没有蜡笔的小新
没有蜡笔的小新 2021-01-26 15:35

How to add CGMutablePathRef to NSMutableArray?

2条回答
  •  梦毁少年i
    2021-01-26 15:50

    CGMutablePath path = <... your path ...>;
    [mutableArray addObject:(id)path];
    

    CGPath and CGMutablePath are just opaque CFType object types, and those can be added (via casting to id) to any Cocoa container classes that are toll-free bridged to their CoreFoundation counter-parts.

提交回复
热议问题