Nate ha scrittoNote the code about should translate directly to spine-cocos2d-iphone. There is a difference with how the region is set, but you can look in spine-c at AtlasAttachmentLoader_newAttachment for how to do that. Also look in SkeletonJson near where it calls RegionAttachment_updateOffset for how to configure the RegionAttachment.
I'm almost give up! I can put the head on the right hand like this:
Slot *rh = [animationNodeLineboy findSlot:@"right_hand"];
Attachment *attachment = [animationNodeLineboy getAttachment:@"right_hand" attachmentName:@"shenti/fl.bd_x_a9_01.0_t"];
Slot_setAttachment(rh,attachment);
but, I still don't know how to change the right hand's image! In your example code above,you can set the region like this "attachment.setRegion(atlas.findRegion("goblingirl/head"));" But in cocos2d-iPhone, how can I do that? I'm sorry I can't get the answer from the "RegionAttachment_updateOffset". so please please please give me a exampler in cocos2d-iPhone~ okey?