Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Scope Bars #199

Open
henrikweimenhog opened this issue Oct 2, 2013 · 0 comments
Open

Enable Scope Bars #199

henrikweimenhog opened this issue Oct 2, 2013 · 0 comments

Comments

@henrikweimenhog
Copy link

Add Scope bar functionality by making the following changes:

DialogViewController:

bool enableScope;
public bool EnableScope {
    get {
        return enableScope;
    }
    set {
        if (enableScope == value)
            return;

        if (tableView != null)
            throw new ArgumentException ("You should set EnableScope before the controller is shown");
        enableScope = value;
    }
}

DialogViewController -> SetupSearch()

replace

searchBar = new UISearchBar (new RectangleF (0, 0, tableView.Bounds.Width, 44)) {

with

var height = (enableScope) ? 90 : 44;
searchBar = new UISearchBar (new RectangleF (0, 0, tableView.Bounds.Width, height)) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant