iOS Performance, Labels/Textfields vs PNGs -
just working on ipad app significant amount of text , wondering if use uitextfields , uilabels more of performance/memory hit using uiimageview png of text.
in cases text animates, cases static.
thank you.
update: taking marc's advice did little digging new xcode project. here experiement details:
test 1:
- brand new single view template xcode project ipad (not using storyboards)
- one image view centered 678x828 image of paragraph text (36k image)
- the custom fonts , stylings baked image.
the result: 756kb of live bytes & 842kb of live bytes w/ retina png
test 2:
- added second image view different paragraph (699x749 82k)
the result: 767kb of live bytes & 854kb of live bytes w/ retina png
test 3:
- took same copy , added 4 uilabels
- styled fonts match fonts of baked in png
- embedded custom fonts
the result: 965kb of live bytes
test 4:
- added 4 more custom text labels same text & style second image view
the result: 1024kb of live bytes
from angle appears using pngs baked in copy , styling has lower memory foot print , scales better. quick & dirty experiment.
Comments
Post a Comment