element-ios/Vector/Categories/MXKViewController+VectorSearch.h
manuroe d695f61699 Search Bar: Changed strategy: add a category for doing search in Vector screens.
This is kind of multiple inheritance. It is more convenient for adding vector search to MatrixKit VCs.
Ex: a MXKRoomViewController can now have a Vector search
2015-12-28 16:50:08 +01:00

38 lines
982 B
Objective-C

/*
Copyright 2015 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#import <MatrixKit/MatrixKit.h>
/**
The `VectorSearch` category adds the management of the search bar in Vector screens.
*/
@interface MXKViewController (VectorSearch) <UISearchBarDelegate>
/**
The search bar
*/
@property (nonatomic, readonly) UISearchBar *searchBar;
/**
Show/Hide the search bar.
@param animated or not.
*/
- (void)showSearch:(BOOL)animated;
- (void)hideSearch:(BOOL)animated;
@end