From 720d11d2e22db1567a1a97a90f0d3895e5d63ab7 Mon Sep 17 00:00:00 2001 From: Nagesh Rao Date: Tue, 15 Oct 2013 18:04:17 +0530 Subject: [PATCH 1/2] fix for #61. No reason to shift focus to tokenField --- TITokenField.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TITokenField.m b/TITokenField.m index 6322a00..ad8b8d3 100644 --- a/TITokenField.m +++ b/TITokenField.m @@ -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]; From 9cdb2a9f669ed4a6083fb794dc679d42b8e21a29 Mon Sep 17 00:00:00 2001 From: Nagesh Rao Date: Tue, 15 Oct 2013 18:25:33 +0530 Subject: [PATCH 2/2] Handle transparent navigation bar in ios7. Fixes #62 --- TokenFieldExample/Classes/TokenFieldExampleViewController.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TokenFieldExample/Classes/TokenFieldExampleViewController.m b/TokenFieldExample/Classes/TokenFieldExampleViewController.m index 352f75f..904a4b7 100644 --- a/TokenFieldExample/Classes/TokenFieldExampleViewController.m +++ b/TokenFieldExample/Classes/TokenFieldExampleViewController.m @@ -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"];