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

pass array of objects in possibleCompletionsForString #91

Open
mirzadelic opened this issue Nov 12, 2015 · 3 comments
Open

pass array of objects in possibleCompletionsForString #91

mirzadelic opened this issue Nov 12, 2015 · 3 comments

Comments

@mirzadelic
Copy link

How can i pass array of objects:

    func autoCompleteTextField(textField: MLPAutoCompleteTextField!, possibleCompletionsForString string: String!) -> [AnyObject]! {
        return [
            Obj,
            Obj,
            Obj,
            Obj
        ]
    }

then to show Obj.name field to cell?

@hardikamal
Copy link

@mirzadelic any solution found to this?.even i want to pass the array obtained from the json...

@mirzadelic
Copy link
Author

No :(

@hardikamal
Copy link

i found it.... move all the datasource thing in your viewcontroller and set viewcontroller delegate "MLPAutoCompleteTextFieldDataSource" then connect datasource to your viewcontroller instead of datasource object...then set your array from the webservice to the MLPAutoCompleteTextFieldDataSource delegate method.....

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

2 participants