亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何以編程方式從UITextField禁用復制粘貼選項

如何以編程方式從UITextField禁用復制粘貼選項

犯罪嫌疑人X 2019-11-14 14:15:28
我正在制作一個具有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];}
查看完整描述

3 回答

  • 3 回答
  • 0 關注
  • 811 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號