title: How to disable copy paste option from UITextField programmatically
body: <p>I am making a registration alertview that has a UITextField in it where the user can enter their registration number. everything is pretty much their, however I would like to remove the copy paste function from the textfield programmatically since their is no InterfaceBuilder version of the textfield I have no idea how to do this.. </p>
  
  <p>here Is my UIalertview thus far...</p>
  
  <pre><code>- (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];
  
  }
  </code></pre>