Sumi-Interactive / SIAlertView

An UIAlertView replacement with block syntax and fancy transition styles.
MIT License
2.51k stars 424 forks source link

Support long text #9

Open afehners opened 11 years ago

afehners commented 11 years ago

If the text is greater than 5 lines it gets truncated. This switches from using a UILabel to a UITextView. If the text is longer than 5 lines it can now be scrolled, whilst still limiting the size of the alert, and allowing the alert to remain small for short text.

ricsantos commented 11 years ago

In SIAlertView.m there is a constant #define MESSAGE_MAX_LINE_COUNT 5 - you can change that to make the alert show more lines of text.

afehners commented 11 years ago

This is true. But set it to a high number and you will notice the popup box will grow larger than the bounding window causing the action buttons to disappear off the bottom of the screen. This push request enables the defined number of lines to be shown, keeping the popup size limited, whilst allow large text to be scrolled like the built in UIAlertView

filipengberg commented 10 years ago

+1

mattijsf commented 10 years ago

+1

lanbozhang commented 10 years ago

+1

lanbozhang commented 10 years ago

can this change request be included in master and next version?