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

Basic Picker example raises Cannot show two Pickers (RuntimeError) #64

Open
ruckus opened this issue Jun 16, 2014 · 2 comments
Open

Basic Picker example raises Cannot show two Pickers (RuntimeError) #64

ruckus opened this issue Jun 16, 2014 · 2 comments

Comments

@ruckus
Copy link

ruckus commented Jun 16, 2014

Trying to get started with the gem and following along from the README I have:

    if AddressBook.request_authorization
      ab = AddressBook::AddrBook.new
      ab.picker(presenter: self) do |person|
        puts person
      end
    end

Running this does prompt me to authorize the AB and does present my contacts. Tapping on a Contact immediately crashes and the exception is:

(main)> 2014-06-15 20:20:57.237 Asq[61183:70b] picker.rb:7:in `show:': Cannot show two Pickers (RuntimeError)
    from addr_book.rb:107:in `picker:'
    from contact_picker_controller.rb:16:in `viewWillAppear:'
    from picker.rb:36:in `hide:'
    from picker:in `peoplePickerNavigationController:shouldContinueAfterSelectingPerson:'

Is there something else I am missing? Thanks.

@ruckus
Copy link
Author

ruckus commented Jun 16, 2014

I am using the latest version of 1.7.2

@jmay
Copy link
Collaborator

jmay commented Aug 1, 2014

I don't see this form of picker display in the README. I've been unable to reproduce this error condition in the simulator. Do any other approaches work for you? How about a very simple one-liner:

AddressBook::AddrBook.new {|ab| ab.picker {|p| puts p}}

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