I'm a new comer to Cocos2D-ObjC. Yesterday, I ported my COSLayout (an UIView layout helper) to Cocos2D-ObjC.
With CCSLayout, you can layout CCNode on screen like this:
CCNodeColor *road = [CCNodeColor nodeWithColor:[CCColor lightGrayColor]];
[road.ccslayout addRule:@"w = 100%, h = 30%"];
Above code will place a road under your screen, with 100% of width and 30% of height.
If you want to create a block and place it on the road, with 50 points width and 100 points height, you can right the following code:
CCNodeColor *block = [CCNodeColor nodeWithColor:[CCColor brownColor]];
[block.ccslayout addRule:@"tt = %h, w = 50, h = 100, ll = 200", road];
This document of CCSLayout is the same as https://github.com/tang3w/COSLayout, with one exception: the coordination of CCNode is different from UIView. For example, in UIView
tt = 0 means top of super view, but in Cocos2D-ObjC, it means bottom of parent node.
Welcome to play with it!