This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
extensions:sp_text_field_input [2011/03/15 03:27] – enbr | extensions:sp_text_field_input [2015/09/14 11:15] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
+ | ====== SPTextField with Input ====== | ||
+ | |||
+ | ---- dataentry extension ---- | ||
+ | type : mod | ||
+ | author_mail | ||
+ | description | ||
+ | lastupdate_dt : 2011-03-13 | ||
+ | compatible | ||
+ | depends | ||
+ | tags : text, input, field, keyboard | ||
+ | homepage_url | ||
+ | download_url | ||
+ | ---- | ||
+ | \\ [[/ | ||
+ | \\ | ||
+ | ===== Usage ===== | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | You will need to add the files to your Sparrow source. | ||
+ | |||
+ | <code objc> | ||
+ | SPTextField *inputField = [[SPTextField alloc] initWithWidth: | ||
+ | inputField.inputEnabled = YES; | ||
+ | inputField.returnKeyType = UIReturnKeyDone; | ||
+ | [self addChild: | ||
+ | [inputField release]; | ||
+ | [inputField addEventListener: | ||
+ | [inputField addEventListener: | ||
+ | [inputField addEventListener: | ||
+ | </ | ||
+ | |||
+ | ===== Changelog ===== | ||
+ | |||
+ | * 2011/03/13: First public version | ||
+ | |||
+ | ===== Source Code ===== | ||
+ | |||
+ | %gist(868480)% | ||
+ | |||
+ | Embr | ||
+ | |||
+ | Just tried adding this, I replaced the textfield files in the Sparrow framework and added both lines to my textfield: | ||
+ | |||
+ | inputField.inputEnabled = YES; | ||
+ | inputField.returnKeyType = UIReturnKeyDone; | ||
+ | |||
+ | Gave the following errors: | ||
+ | |||
+ | error: request for member ' | ||
+ | error: request for member ' | ||
+ | |||
+ | Do I have to add something to the implementation to make it work? | ||
+ | |||
+ | Thanks |