Skip to content

Commit

Permalink
Merge pull request #65 from nagrao/ios7
Browse files Browse the repository at this point in the history
fix for #61. No reason to shift focus to tokenField
  • Loading branch information
thermogl committed Oct 15, 2013
2 parents 0281ded + 9cdb2a9 commit 3541c87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion TITokenField.m
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ - (void)addToken:(TIToken *)token {

if (shouldAdd){

[self becomeFirstResponder];
//[self becomeFirstResponder];

[token addTarget:self action:@selector(tokenTouchDown:) forControlEvents:UIControlEventTouchDown];
[token addTarget:self action:@selector(tokenTouchUpInside:) forControlEvents:UIControlEventTouchUpInside];
Expand Down
3 changes: 3 additions & 0 deletions TokenFieldExample/Classes/TokenFieldExampleViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ @implementation TokenFieldExampleViewController {

- (void)viewDidLoad {

if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
self.edgesForExtendedLayout = UIRectEdgeNone;

[self.view setBackgroundColor:[UIColor whiteColor]];
[self.navigationItem setTitle:@"Example"];

Expand Down

0 comments on commit 3541c87

Please sign in to comment.