bpa
bpa

Reputation: 183

UITextView custom form

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

Upvotes: 0

Views: 184

Answers (2)

Muruganandham K
Muruganandham K

Reputation: 5331

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

Upvotes: 2

AntonijoDev
AntonijoDev

Reputation: 1315

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

Upvotes: -1

Related Questions