私はコードを使用しています:
{ randomstatus=0; msg=[[NSString alloc]initWithFormat:@"Good job, do you want to continue?"]; UIActionSheet *actionSheet=[[UIActionSheet alloc]initWithTitle:msg delegate:self cancelButtonTitle:@"No" destructiveButtonTitle:@"Yes" otherButtonTitles:nil]; [actionSheet showInView:self.view]; [actionSheet release]; [msg release]; }
コードを変更したくありませんが、「destructiveButton」を赤ではなく緑にする必要があります。これは可能ですか、それとも別のボタンを使用する必要がありますか?