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

Adding new items after initialized? #68

Closed
mat0pad opened this issue Jun 16, 2016 · 2 comments
Closed

Adding new items after initialized? #68

mat0pad opened this issue Jun 16, 2016 · 2 comments

Comments

@mat0pad
Copy link

mat0pad commented Jun 16, 2016

Is there an easier way to add new items for the dropdown menu after it has been initialized?
Right now I'm recreating it but I'm experiencing crashes when doing this?

@mat0pad
Copy link
Author

mat0pad commented Jun 21, 2016

I suggest adding a function for updating data set:

    public func updateData(items: [AnyObject])
    {
        if(!items.isEmpty)
        {
        self.tableView.items = items

        self.tableView.reloadData()
        }
    }

@PhamBaTho
Copy link
Owner

@mat0pad As you wished, from release 0.4 you can use updateItems(items: [AnyObject]) to update items for the dropdown menu after it has been initialized.
Please feel free to reopen this issue if you have any further issues.

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