A noob question.
I have an alert:
"alertMessage" = "This is my message: 1 2 3. And another one: 5 6 7";
which I am displaying with:
NSString *asd = NSLocalizedString (@"alertMessage", @"");
NSString *alertTitle = NSLocalizedString (@"alertTitle", @"");
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:alertTitle message:asd delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
How do I implement line breaks so "And Another one:" starts on the second line.
thank you!
Add line break characters (\n) to your message.
Add a \n in your string literal.
More details here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With