I’m trying to determine the length of a String so I can dynamically layout some Labels. In iOS I would use:
CGSize size = [string sizeWithFont:font];
Is it possible to do this with the Appcelerator API or is there another way to do this type of dynamic layout?
I’m trying to determine the length of a String so I can dynamically layout
Share
https://github.com/appcelerator/titanium_mobile/blob/master/demos/KitchenSink/Resources/examples/horizontal_layout.js