UIAlertViewにUITextViewがあります。UITextViewからテキストを選択すると、次のスクリーンショットに示すように、これらのテキスト選択メニュー、つまりコピー、貼り付け、選択などがUIAlertビューの背後に隠れています。
このメニューを前に作る方法はありますか?
UIAlertViewにUITextViewがあります。UITextViewからテキストを選択すると、次のスクリーンショットに示すように、これらのテキスト選択メニュー、つまりコピー、貼り付け、選択などがUIAlertビューの背後に隠れています。
このメニューを前に作る方法はありますか?
あなたは質問をよく説明しなければなりません(少なくともあなたが使用したコード)
とにかく、この以下のコードは私にうまくいきました
UIAlertView *myAlertView = [[UIAlertView alloc] initWithTitle: @"Select the Text" message:@" " delegate:self cancelButtonTitle:@"OK" otherButtonTitles:@"Cancel", nil];
UITextField *myTextField = [[UITextField alloc] initWithFrame:CGRectMake(12.0, 65.0, 260.0, 25.0)];
[myTextField setBackgroundColor:[UIColor whiteColor]];
myTextField.text = @"This is the Data string";
[myTextField becomeFirstResponder];
[myAlertView addSubview:myTextField];
[myTextField release];
myTextField = nil;
[myAlertView show];
[myAlertView release];
myAlertView = nil;
注:要件に応じてフレームを位置合わせします