Bug 16649 - Newline \n not working in UIAlertView message
Summary: Newline \n not working in UIAlertView message
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 7.0.4.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-12-06 12:45 UTC by Colin Kirk
Modified: 2015-04-20 10:43 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Colin Kirk 2013-12-06 12:45:34 UTC
This code doesn't seem to create an alert that contains the message's line break.

new UIAlertView ("My Title", "My \n Message", new AlertViewDelegate (this), null, new string[] { "Yes","No" }).Show ();
Comment 1 Sebastien Pouliot 2013-12-06 13:12:35 UTC
That works fine for me (tested on iOS7), i.e. "My" and "Message" are on two separate lines.

Under which version of iOS and (sim or devices) and kind of device (iPhone, iPad) did you run this ?

Can you attach a self-contained test case ? in case your `AlertViewDelegate` somehow affect the result.

Also include all your software version information*.

* The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button).
Comment 2 Sebastien Pouliot 2015-04-20 10:43:09 UTC
This issue could not be reproduced and without a test case we cannot diagnose this further. If this still happens please re-open the bug report and attach the self-contained test case. Thanks.