There is a message about saving CGPathRef here . The guy uses the CGPathApply function to enumerate through path elements:
static void saveApplier(void* info, const CGPathElement* element) { ... } ... NSMutableArray* a = [NSMutableArray arrayWithObject:[NSNumber numberWithBool:YES]]; CGPathApply(path, a, saveApplier);
source share