Friends will be please suggest me how to draw line with some width & having ends with rounded curves
There is no primitive for that purpose. You should draw a line, then draw a two small circles on it’s ends with radius equal to width of line. It is CCDrawingPrimitives.h or CCDrawNode to draw lines and circles.
can i use drawSegment method as its looks like what i want