Вы также можете настроить свой UITextView, чтобы он выглядел как UITextField, используя это.
myTextView.layer.cornerRadius = 5;
[myTextView.layer setBorderColor:[[[UIColor grayColor] colorWithAlphaComponent:0.5] CGColor]];
[myTextView.layer setBorderWidth:2.0];
myTextView.clipsToBounds = YES;
Не забудьте import <QuartzCore/QuartzCore.h>
, и вы избавитесь от ошибки.
Надеюсь, это кому-нибудь поможет:)