ZRYWordPicker 0.0.1

ZRYWordPicker 0.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total424
Week0
Month0

Installs

Apps7
powered by Segment

GitHub

Stars123
Watchers6
Forks5
Issues2
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 278


  • By
  • Mariano Abdala

ZRYWordPicker is a really simple horizontal word picker specially crafted for the top of the keyboard of any iOS 7 app. If your app has predefined words that your user can pick, instead of type, then this will likely save him some seconds for each word.

As seen in

Sample screenshots

 

Usage sample

-  (void)initializeWordPicker {

    ZRYWordPicker *wordPicker =
    [[ZRYWordPicker alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];

    wordPicker.dataSource = self;
    wordPicker.delegate = self;

    self.textField.inputAccessoryView = wordPicker;
}

- (NSUInteger)numberOfWordsInWordPicker:(ZRYWordPicker *)wordPicker {

    return self.words.count;
}

- (NSString *)wordPicker:(ZRYWordPicker *)wordPicker wordAtIndex:(NSUInteger)index {

    return self.words[index];
}

- (void)wordPicker:(ZRYWordPicker *)wordPicker didSelectWordAtIndex:(NSUInteger)index {

    ...
}