iOS - Curved Rounded UITextfield -
i need have textfield in app curved, able pre-define path.
i have textfield in storyboard, , when button tapped, text field needs appear in, curved.
how achieve curved part, making textfield round , text curve entered?
thanks, ari
you need write hefty chunk of core text code + code calculate curve geometry navigates writing along path.
here on/offline resources:
eva diaz-santana, core text tutorial
http://weblog.invasivecode.com/core-text
rob napier, ios6 pushing limits (chapter 26, fancy text layout)
http://iosptl.com/
apple, coretextarccocoa (sample code)
http://developer.apple.com/library/mac/#samplecode/coretextarccocoa/introduction/intro.html
erica sadun, advanced ios6 developer's cookbook (chapter 3, core text , chapter 4, geometry - see recipe 4.8, laying out text along bezier path)
https://github.com/erica/ios-6-advanced-cookbook
Comments
Post a Comment