私は NSString stringWithFormat で非常に基本的な問題を抱えています。ユーザーが入力して alertView に表示する名前を取得したい: ユーザー名を歓迎します。
NSString *welcomeMessage = [NSString stringWithFormat:(@"Welcome %@", passedData)];
UIAlertView *alert = [[UIAlertView alloc] //show alert box with option to play or exit
initWithTitle: welcomeMessage
message:@"Once you press \"Play\" the timer will start. Good luck!"
delegate:self
cancelButtonTitle:@"I want out!"
otherButtonTitles:@"Play",nil];
[alert show];
passedData は、入力されたユーザー名です。現時点での方法-アラートボックスのタイトルにはユーザー名のみが表示され、「ようこそ」部分は表示されません。ここで本当に基本的な知識が欠けていることは知っていますが、助けていただければ幸いです。