我务实地创建 UItextView,当我在 UITextView 中点击移动光标时,它不起作用。但它使用IB工作。我应该为 UItextView 或 UIView 设置一些属性吗?
UITextView *textView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0,320, 460)];
textView.userInteractionEnabled = YES;
textView.editable = YES;
textView.multipleTouchEnabled =YES;
[self.view addSubview:textView];
textView.delegate = self;
我发现默认的长按不起作用。