0

Possible to make the custom form of the UITexView? For example ellipse or semi ellipse form.

enter image description here

or a more complex case

enter image description here

bpa
  • 183
  • 1
  • 12

2 Answers2

2

Yes, try

atextview.layer.borderWidth = 2.0;
atextView.layer.borderColor = [UIColor blackColor];
atextView.layer.cornerRadius = 10; //adjust it to change req. shape

UPDATE: In case of change in contentInSet check this question and answer

Community
  • 1
  • 1
Muruganandham K
  • 5,271
  • 5
  • 34
  • 62
  • use textkit framework. but it available only in ios 7.0. Before iOS 6, web views were usually the easiest way to render text with mixed styling, such as bold, italics, or even colors. check [this tutorial](http://www.raywenderlich.com/50151/text-kit-tutorial) – Muruganandham K Nov 18 '13 at 09:27
  • The recent shape varying content insets. so check core text framework. have a look at [here](http://weblog.invasivecode.com/core-text) – Muruganandham K Nov 18 '13 at 09:31
  • thanks,but via core text i get read only text or edited from another object – bpa Nov 18 '13 at 09:39
-1

No need for that, just make it transparent and put UIImageView with any image U like underneath it...

AntonijoDev
  • 1,317
  • 14
  • 29