MarcBruins / MLPAutoComplete-Xamarin-iOS

MIT License
3 stars 3 forks source link

How to hide the search results Table view after selecting the item from list #4

Open SrinivasaLadi opened 7 years ago

SrinivasaLadi commented 7 years ago

Hi , How to auto hide the table view after selecting click on item in list .i have tried to implement delegate methods but no use.

public void AutoCompleteTextField(MLPAutoCompleteTextField textField, string selectedString, MLPAutoCompletionObject selectedObject, Foundation.NSIndexPath indexPath) { Console.WriteLine("AutoCompleteTextField method called in delegate"); } public void WillShowAutoCompleteTableView(MLPAutoCompleteTextField textField, UITableView autoCompleteTableView) {

        Console.WriteLine("Autocomplete table view will be added to the view hierarchy");
    }
    public void DidShowAutoCompleteTableView(MLPAutoCompleteTextField textField, UITableView autoCompleteTableView)
    {
        Console.WriteLine("Autocomplete table view is showing from the view hierarchy");
    }
    public void WillHideAutoCompleteTableView(MLPAutoCompleteTextField textField, UITableView autoCompleteTableView)
    {
        Console.WriteLine("Autocomplete table view will be removed from the view hierarchy");
    }
    public void DidHideAutoCompleteTableView(MLPAutoCompleteTextField textField, UITableView autoCompleteTableView)
    {
        Console.WriteLine("Autocomplete table view is removed from the view hierarchy");
    }
    public void DidChangeNumberOfSuggestions(MLPAutoCompleteTextField textField, int numberOfSuggestions)
    {
        Console.WriteLine("Did change number of suggestions");
    }

i am able to see only below two functions are working could you please guide me how to working with this controller ?

2017-09-27 18:50:09.886 RQAPP.iOS[1660:726419] Autocomplete table view will be added to the view hierarchy 2017-09-27 18:50:09.887 RQAPP.iOS[1660:726419] Autocomplete table view is showing from the view hierarchy

SrinivasaLadi commented 7 years ago

public void AutoCompleteTextField(MLPAutoCompleteTextField textField, string selectedString, MLPAutoCompletionObject selectedObject, Foundation.NSIndexPath indexPath) { Console.WriteLine("AutoCompleteTextField method called in delegate"); } this method is not calling at all please let me know how to get the call back after selected the cell with selected value