simple CATextLayer scaling problem

Posted by dersubtile on Stack Overflow See other posts from Stack Overflow or by dersubtile
Published on 2010-05-09T13:09:41Z Indexed on 2010/05/09 13:18 UTC
Read the original article Hit count: 223

I'm having a simple scaling problem with CATextLayer, but i just couldn't figure it out: I want the CATextLayer to proportionally grow in size with it's superlayer: if the superlayer's width is 300 the text size of CATextLayer should be 12 and if the supeview's width is 600 the text size should be 24. I couldn't find a working solution!

Can you please give me a clue?

Thanks, Julian.

© Stack Overflow or respective owner

Related posts about mac

Related posts about cocoa