mdavid
mdavid

Reputation: 55

How can a file be displayed using UIAlertview in iOS?

I am trying to display my license agreement the first time that the user run my application. The license agreement is around 3-pages long. Can I used an Alert to display this message? Does UIAlertView controller has a maximum number of characters that can be displayed?

Upvotes: 0

Views: 95

Answers (2)

nsinvocation
nsinvocation

Reputation: 7637

In my opinion in this case you should present a view with a UITextView. I don't see any reasons for displaying a UIAlertView because it does not fill the entire screen and user will feel less comfortable reading from an alertview than from a fullscreen textview. UIAlertView was not designed to show very long text, it will cut the text if it's too long and doesn't fit in the bounds of the alertview.

Upvotes: 3

riyaz
riyaz

Reputation: 1103

No maximum character limit seems to be there in UIAlertView.

but, UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead.

Upvotes: 0

Related Questions