I used to form lines like this for AlertView
NSString *alertForGuessWin1 = [[NSString alloc]initWithFormat:@"You guess number %d ",i_2]; NSString *alertForGuessWin2 = [[NSString alloc]initWithFormat:@"for: %d step" , count_step]; NSString *alertForGuessWin3 = [alertForGuessWin1 stringByAppendingString:alertForGuessWin2]; UIAlertView *alertGuessWin =[[UIAlertView alloc]initWithTitle:@"Congratulation" message:alertForGuessWin3 delegate:self cancelButtonTitle:@"New Game" otherButtonTitles:nil, nil]; [alertGuessWin show]; There were questions about how to form a line right in a message (using variables and text) so that it would fit into one line.
And most importantly, how to make a line break (in c ++ there was something like / n)