Function CCSizeFromString

#include <Geode/cocos/cocoa/CCNS.h>cocos2d::CCSizeCCSizeFromString(
charconst*pszContent
)

Returns a Core Graphics size structure corresponding to the data in a given string.

Parameters

pszContent

A string object whose contents are of the form "{w, h}", where w is the width and h is the height. The w and h values can be integer or float values. An example of a valid string is "{3.0,2.5}". The string is not localized, so items are always separated with a comma.
Return value
A Core Graphics structure that represents a size. If the string is not well-formed, the function returns CCSizeZero.
Examples0