Skip to content

notbenoit/ReadMe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReadMe

A Spritz like library for iOS. (WIP)

Sample

Simple usage

To use it, simply drag and drop the two classes in your Xcode project. Then, to launch the reading process with the ReadMeLabel just call readText: on the label instance. The default reading speed is 300 words per minute. To stop the reading process, simply call stopReading. There is no need to call the stop method, the process will stop when it reaches the end of the text.

  [myLabel readText:@"This is an amazing text to read."];
  ...
  [myLabel stopReading]; //Optional

Custom control

You can create your custom control by implementing the delegate methods. Feel free to show them to the world !


ReadMeDelegate Protocol Reference

You can implements these delegate methods to handle your own ReadMe control if you do not want to use ReadMeLabel.

Tasks

– readMe:didReadWord:withORP: required method

– readMeDidFinishReading: required method

===

readMe:didReadWord:withORP:

Called on the delegate when a new word should be diplayed. This method is called on the main thread.

- (void)readMe:(ReadMe *)readMe didReadWord:(NSString *)newWord withORP:(int)orp

Parameters

readMe The readme object.

newWord The word to be diplayed.

orp Optimal recognition point. The place where the eyes should focus. Usually resulting in a colored letter. Index starting to 0 for first letter

Discussion

Called on the delegate when a new word should be diplayed. This method is called on the main thread.

Declared In

ReadMe.h

===

readMeDidFinishReading:

Called when ReadMe has finished parsing a text.

- (void)readMeDidFinishReading:(ReadMe *)readMe

Parameters

readMe The readme object.

Discussion

Called when ReadMe has finished parsing a text.

Declared In

ReadMe.h

About

A Spritz like library for iOS. (WIP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published