Skip to content
Newer
Older
100644 41 lines (30 sloc) 2.21 KB
657d9fa @cruffenach Initial Commit
cruffenach authored
1 ****** HOW TO USE ******
2
94fc262 Update the README with the new optional methods, and finally rename t…
James Van Metre authored
3 This UITableViewCell subclass is most commonly used for the creation of forms. There is a leftLabel and a rightTextField in each cell. You should configure the labels text and the textfields placeholder appropriately. The cell defines a protocol called ELCTextFieldDelegate which has 6 optional methods.
657d9fa @cruffenach Initial Commit
cruffenach authored
4
94fc262 Update the README with the new optional methods, and finally rename t…
James Van Metre authored
5 The two most used are:
657d9fa @cruffenach Initial Commit
cruffenach authored
6
7 //Called to the delegate whenever the text in the rightTextField is changed
94fc262 Update the README with the new optional methods, and finally rename t…
James Van Metre authored
8 - (void)textFieldCell:(ELCTextFieldCell *)inCell updateTextLabelAtIndexPath:(NSIndexPath *)inIndexPath string:(NSString *)inValue;
9
10 //Called to the delegate whenever return is hit when a user is typing into the rightTextField of an ELCTextFieldCell
11 - (BOOL)textFieldCell:(ELCTextFieldCell *)inCell shouldReturnForIndexPath:(NSIndexPath*)inIndexPath withValue:(NSString *)inValue;
657d9fa @cruffenach Initial Commit
cruffenach authored
12
94fc262 Update the README with the new optional methods, and finally rename t…
James Van Metre authored
13 The other four just forward on the UITextFieldDelegate methods, if the ELCTextFieldCellDelegate implements them.
14 - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField;
15 - (BOOL)textFieldShouldEndEditing:(UITextField *)textField;
16 - (void)textFieldDidBeginEditing:(UITextField *)textField;
17 - (void)textFieldDidEndEditing:(UITextField *)textField;
657d9fa @cruffenach Initial Commit
cruffenach authored
18
19 ************************
20
21 The MIT License
22
94fc262 Update the README with the new optional methods, and finally rename t…
James Van Metre authored
23 Copyright (c) 2012 ELC Technologies
657d9fa @cruffenach Initial Commit
cruffenach authored
24
25 Permission is hereby granted, free of charge, to any person obtaining a copy
26 of this software and associated documentation files (the "Software"), to deal
27 in the Software without restriction, including without limitation the rights
28 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
29 copies of the Software, and to permit persons to whom the Software is
30 furnished to do so, subject to the following conditions:
31
32 The above copyright notice and this permission notice shall be included in
33 all copies or substantial portions of the Software.
34
35 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
36 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
37 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
38 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
39 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
40 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
41 THE SOFTWARE.
Something went wrong with that request. Please try again.