我正在制作一个具有UITextField的注册Alertview,用户可以在其中输入其注册号。一切都差不多,但是我想以编程方式从文本字段中删除复制粘贴功能,因为它们不是文本字段的InterfaceBuilder版本,所以我不知道该怎么做。
到目前为止是我的UIalertview ...
- (void)pleaseRegisterDevice {
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle:@"Please Register Device!" message:@"this gets covered" delegate:self cancelButtonTitle:nil otherButtonTitles:@"OK", nil];
regTextField = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 45.0, 260.0, 25.0)];
[regTextField setBackgroundColor:[UIColor whiteColor]];
regTextField.textAlignment = UITextAlignmentCenter;
[myAlertView addSubview:regTextField];
[myAlertView show];
[myAlertView release];
}