UIActionSheet Title Multiline


Very simply I'd like to have the title of the UI Action Sheet be two lines.

See example below. I'd like to make it:

(line1) Action

(line2) Sheet Demo

Still centered and everything just with a carriage return

<img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/8NesA.png" data-original="https://i.stack.imgur.com/8NesA.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />


so because it takes NSString * you need to use \r

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:NSLocalizedString(@"First Line\rSecond Line", nil) delegate:self cancelButtonTitle:NSLocalizedString(@"_CANCEL", nil) destructiveButtonTitle:nil otherButtonTitles:NSLocalizedString(@"_USE_SYSTEM_LANGUAGE", nil), NSLocalizedString(@"_ENGLISH", nil), NSLocalizedString(@"_ARABIC", nil), nil];

it is copy&paste I use NSLocalizedString but you ncat use NSString

<img alt="See picture:" class="b-lazy" data-src="https://i.stack.imgur.com/kxe5Y.png" data-original="https://i.stack.imgur.com/kxe5Y.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" />


  • UIActionSheet Title Multiline
  • UITextfield issue with UIPicker view
  • UIPicker and UIActionsheet no longer working iOS7
  • How to bring list of buttons when button pressed in iOS app
  • how to display only time in UIDatePicker iphone
  • code to make dialog box or popup Menu in iphone
  • Add image into UIActionSheet
  • Cropped characters - iOS11 - Alert Dialog
  • ABPersonViewController delete button warnning
  • Customizing a UIActionSheet
  • How to find invalid Char in a SQL table
  • PHP displays \\r\\n characters when echoed in Textarea
  • How to access components of jFrame from other class?
  • How to do a semi-transparent modal segue like “Whatsapp” - “Take Photo/ Choose Existing Photo”
  • Java carriage to previous line
  • Slide up menu in iOS
  • UIActionSheet orientation
  • url encoding, Form encoding and mailto: encoding
  • how to center matlab .eps figure in latex document
  • How do I get brown text in a batch file?
  • Need help centering a div class on page
  • How to resize image if the image is bigger than Textbox.But it not increase scale if smaller
  • What is this iOS exception with NSCFType?
  • Count New Lines in Text File
  • how to solve invalid conversion specifier warning in iphone app
  • CSS - Cannot get one spanned style to override another inherited style and align left
  • Is there a package like bigmemory in R that can deal with large list objects?
  • Azure webjobs output logs indexing taking very long
  • UIAlertController button function not working
  • ADO and msqli connections very slow
  • Marklogic : Query response time is very high
  • How to use remove-erase idiom for removing empty vectors in a vector?
  • Eraser for UIBezierPath
  • Compare two NSDates in iPhone
  • Is there any way to bind data to data.frame by some index?
  • Django query for large number of relationships
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • How can I use `wmic` in a Windows PE script?
  • How to push additional view controllers onto NavigationController but keep the TabBar?