1

I use this code to change the frame of an uitextview but the options of copy/paste etc. are disabled afterwards.

CGRect viewFrame = poemcomment.frame;
viewFrame.size.height = 144;
viewFrame.origin.y = 513;
poemcomment.frame = viewFrame;
poemcomment.userInteractionEnabled=YES;
poemcomment.layer.cornerRadius = 5;
poemcomment.clipsToBounds = YES;

Any help is appreciated.

stefanosn
  • 3,264
  • 10
  • 53
  • 79

1 Answers1

2

you could have look to the following SO post that describe the way to enable cpoy/paste options with input controls by subclassing the UITextView and implementation the below functions

- (BOOL)canPerformAction:(SEL)action withSender:(id)sender 

@mrueg asked the same and also provided the solution,

Enable copy and paste on UITextField without making it editable

Community
  • 1
  • 1
Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76