CGMutablePathRef到NSMutableArray [英] CGMutablePathRef to NSMutableArray

查看:81
本文介绍了CGMutablePathRef到NSMutableArray的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将CGMutablePathRef添加到NSMutableArray?

How to add CGMutablePathRef to NSMutableArray?

推荐答案

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

CGPathCGMutablePath只是不透明的CFType对象类型,可以将这些类型添加(通过强制转换为id)到任何免费的可可容器类中,这些类可桥接到其CoreFoundation对应部分.

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.

这篇关于CGMutablePathRef到NSMutableArray的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆