ios - UISearchBar in navigationbar -


how can show uisearchbar in navigationbar?

i can't figure out how this.

your appreciated.

to put searchbar center of navigationbar:

self.navigationitem.titleview = self.searchbartop; 

to put searchbar left/right side of navigationbar:

uibarbuttonitem *searchbaritem = [[uibarbuttonitem alloc] initwithcustomview:searchbar]; self.navigationitem.rightbarbuttonitem = searchbaritem; 

Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -