IOS7: How to add a fixed search bar such as Contacts on iOS7?

After I look for a lot of questions and answers, no good result. So I have to ask him here:

I want to add a search bar below the navigation bar.

This search string should be fixed. As well as contacts on iOS7 below.

iOS7 contacts Can someone help me figure it out?

+4
source share
1 answer

You have a view controller. It has a basic appearance. Inside this main view is a search bar (UISearchBar), and below is a tabular view (UITableView).

(UINavigationController).

UINavigationController

MyViewController (UINavigationController) - child of the navigation controller

UIView - main view of MyViewController

|--- UISearchBar (subview of UIView)
|
|--- UITableView (another subview of UIView)
+5

Source: https://habr.com/ru/post/1529696/


All Articles