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

iPad - Swift Popover not visible #68

Closed
skywinder opened this issue Oct 8, 2014 · 5 comments
Closed

iPad - Swift Popover not visible #68

skywinder opened this issue Oct 8, 2014 · 5 comments

Comments

@skywinder
Copy link
Owner

When project running on iPad with Swift implementation - popover not appeared.
Reproducible in project example.

@mgmart
Copy link

mgmart commented Oct 11, 2014

Tried this in the simulator Version 8.0 (550.1) with:

  • iPad Air (7.1)
  • iPad Air (8.0)
  • iPad Retina (7.1)
  • iPad Retina (8.0)

The popover appears fine on all devices.

@skywinder
Copy link
Owner Author

@mgmart Can you try example from the project (Swift-Example) on iPad Air simulator?
Is it works?
Because I have no idea why it's not showing on my simulator. (Xcode 6.0)
Imgur

@mgmart
Copy link

mgmart commented Oct 12, 2014

It's a bit distressing, but I've managed somehow to have selected the Swift-example and to run the objc-example. Thank you for sending the screenshot.
Sorry!

@mgmart
Copy link

mgmart commented Oct 15, 2014

I must prepend, that I'm not an experienced IOS developer.

The view bounds of _containerview became mixed up when using it with Swift, because it's a tableView instead of a textFieldlike in Objective-C.

In presentPopover I had changed the CGRect and the popover shows up.

        CGRect booze = {{0, 256}, {768, 1024}};
        [popover presentPopoverFromRect:booze inView:_containerView
               permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];

Unfortunately I do not know how to put this into nice code.

HTH

@skywinder
Copy link
Owner Author

@mgmart You're damn right! It's my fault.
Thanks a lot! Fixed! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants