2

I am implementing something like Eula in my iPhone app. I need to enable the confirm button only when user reads whole Eula (scrolls along whole long text).

I am using UIAlertView, with long inside text. Thanks to this, the text field inside alert view have a scroll bar on its right side.

I need to access the delegate of this scroll, because I need to enable OK button only if user scrolls down with scrollable text.

AMIC MING
  • 6,306
  • 6
  • 46
  • 62
  • You could check http://stackoverflow.com/questions/6217900/uiscrollview-reaching-the-bottom-of-the-scroll-view since UITextView respond to `contentOffset`/`contentSize` – Larme Jan 15 '13 at 14:23
  • the long test is inside the message of UIAlertView or is a UITextView on UIAlertView? – Simone Pistecchia Jan 15 '13 at 14:24
  • The long text is directly inside the UIAlertView message. Any special UITextView was NOT added to the UIAlertView. – Radek Benes Jan 15 '13 at 14:35
  • Don't you want to use a simple UIScrollView where the button becomes visibale at the end? And then you can add a third button with text `TL;DR` which also accepts the eula. – ott-- Jan 15 '13 at 15:09

1 Answers1

0

If you are planning to release this app on the AppStore, you can't do it using the builtin UIAlertView. UIAlertView doesn't have any method, and it's delegate protocol doesn't give you this kind of information.

Probably you can achieve this iterating through the subviews of the UIAlertView instance, but doing this will guarantee your app the rejection :-)

the only thing you can do is to create your own "MYAlertView" component

LombaX
  • 17,265
  • 5
  • 52
  • 77