0

UIAlertViewにUITextViewがあります。UITextViewからテキストを選択すると、次のスクリーンショットに示すように、これらのテキスト選択メニュー、つまりコピー、貼り付け、選択などがUIAlertビューの背後に隠れています。

ここに画像の説明を入力してください

このメニューを前に作る方法はありますか?

4

1 に答える 1

0

あなたは質問をよく説明しなければなりません(少なくともあなたが使用したコード)

とにかく、この以下のコードは私にうまくいきました

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;

:要件に応じてフレームを位置合わせします

于 2012-07-27T13:31:40.217 に答える