I have an app for iOS that display some files in a tableview which the filetype is “txt”.I want to make a E-book app,it can display the txt file in a textview,and count the words,input how many words /min user want to read ,the textview begin to scroll and finish scroll in some minute
Hope for you help,Thank you!
I have an app for iOS that display some files in a tableview which
Share
Use UITextView or a UIWebView, use a repeating NSTimer, calculate the ratio of how much of the minute is completed, and use it to set the contentOffset of the view.
Updated with more detail:
This is approximate and untested. It will scroll it in one minute. To create a timer,
Update the view. I think this will scroll the text off the screen.