Skip to content

tokenField:(APTokenField *)tokenField didAddObject:(id)object only fires when table cell clicked #2

@sigmundfridge

Description

@sigmundfridge

Ok, my second issue (see #1) is that

- (void)tokenField:(APTokenField *)tokenField didAddObject:(id)object;

only fires when a tag is selected from the UITableView. In my case, I want to add new tokens when the enter key is pressed e.g.

- (void)tokenFieldDidReturn:(APTokenField *)tokenField{
    if(![trimString length]==0) {
        // I would expect the following line to fire tokenField: didAddObject:
        [tokenField addObject:tokenField.text];
    } 
}

Is this intentional?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions