diff --git a/Classes/Base.lproj/ChatConversationCreateView.xib b/Classes/Base.lproj/ChatConversationCreateView.xib index b2a02ade1..5b786244f 100644 --- a/Classes/Base.lproj/ChatConversationCreateView.xib +++ b/Classes/Base.lproj/ChatConversationCreateView.xib @@ -73,6 +73,7 @@ + diff --git a/Classes/ChatConversationCreateTableView.h b/Classes/ChatConversationCreateTableView.h index b464fff41..252a08158 100644 --- a/Classes/ChatConversationCreateTableView.h +++ b/Classes/ChatConversationCreateTableView.h @@ -9,5 +9,6 @@ #import @interface ChatConversationCreateTableView : UITableViewController +@property(weak, nonatomic) IBOutlet UISearchBar *searchBar; @end diff --git a/Classes/ChatConversationCreateTableView.m b/Classes/ChatConversationCreateTableView.m index 6c25ae60e..11496ab6e 100644 --- a/Classes/ChatConversationCreateTableView.m +++ b/Classes/ChatConversationCreateTableView.m @@ -26,6 +26,7 @@ [self.contacts addObject:ref]; [self.allContacts addObject:ref]; } + [_searchBar becomeFirstResponder]; } - (void)reloadDataWithFilter:(NSString *)filter { diff --git a/Classes/ChatConversationCreateView.h b/Classes/ChatConversationCreateView.h index 9081cace8..676bc3543 100644 --- a/Classes/ChatConversationCreateView.h +++ b/Classes/ChatConversationCreateView.h @@ -10,8 +10,10 @@ #import "ChatConversationCreateTableView.h" #import "UICompositeView.h" -@interface ChatConversationCreateView : UIViewController +@interface ChatConversationCreateView : UIViewController + @property(strong, nonatomic) IBOutlet ChatConversationCreateTableView *tableController; + - (IBAction)onBackClick:(id)sender; @end diff --git a/Classes/ChatConversationCreateView.m b/Classes/ChatConversationCreateView.m index 4f0b58750..8263661bf 100644 --- a/Classes/ChatConversationCreateView.m +++ b/Classes/ChatConversationCreateView.m @@ -33,26 +33,6 @@ static UICompositeViewDescription *compositeDescription = nil; #pragma mark - searchBar delegate -- (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { - // // display searchtext in UPPERCASE - // // searchBar.text = [searchText uppercaseString]; - // searchBar.showsCancelButton = (searchText.length > 0); - // [ContactSelection setNameOrEmailFilter:searchText]; - // [tableController loadData]; -} - -- (void)searchBarTextDidEndEditing:(UISearchBar *)searchBar { - [searchBar setShowsCancelButton:FALSE animated:TRUE]; -} - -- (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar { - [searchBar setShowsCancelButton:TRUE animated:TRUE]; -} - -- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar { - [searchBar resignFirstResponder]; -} - - (IBAction)onBackClick:(id)sender { [PhoneMainView.instance popCurrentView]; }