Monotouch.Dialog: Is there an easy way to make the search bar stay at the top of the UITableView when scrolling?

I am using Monotouch.Dialog and the search bar seems to be integrated into the tableview / root element. Therefore, it scrolls in the form of a table, so you must be at the top of the table to see the search bar.

I would like to use monotouch.dialog, but I really want it to be the element above the table view, which remains at the top when the user scrolls. Does anyone know an easy way to do this?

+3
source share
1 answer

I worked too much with the search bar, so I don’t know its search parameters, however, I put it in the parent navigation. The controller will keep it at the top of the screen (you can encode the location) and the search bar does not depend on the type of table. I am sure that you can define the search area separately.

navigationController.View.AddSubview (<searchbar>);

Be sure to handle rejecting it when navigating (does not pop out of the stack)

0
source

All Articles