DatePickerDialog-iOS-Swift: Dialog doesn't appear (XCode 7.3)

Dialog doesn’t appear on my project.

Dialog view’s frame seems to be correct: (0.0, 0.0, 320.0, 568.0)

Also I tried to bring subview front by adding this line in the func show: method: UIApplication.sharedApplication().windows.first!.bringSubviewToFront(self)

I’m using a navigation view controller under a tab bar controller. When debugging nothing seems to be wrong. I think it’s only a visibility problem.

Any idea?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 25 (5 by maintainers)

Commits related to this issue

Most upvoted comments

@shenyufei I think it is not really an effort for you to provide us with a sample project. You ask for help – we want to help! We are not kidding either. I can not reproduce your bug on iOS 10, even when playing around with the UIWindow and rootViewController.

If you won’t create a repo, nobody can help you. Here you can see what I tried to reproduce your bug: https://github.com/benjohnde/DialogAppearance.

Works fine for me. I guess you have two options: think about your code and debug it yourself or provide us with code, that does not work.

Cheers!

Hey @mickaelmonsieur and @m-etka . I’m the new admin of this repo. Can you give me an example project of this problem? Everything works here screen shot 2016-07-19 at 3 56 04 pm