-
Notifications
You must be signed in to change notification settings - Fork 521
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
Can't load table view contains on UIViewController #88
Comments
Hi @mrjimoy, I am not sure if I understood you correctly, but did you have a look at the example provided in #87? This is an example of a custom view containing a table view used with PopupDialog. It is not using Storyboard or XIBs, however the RatingDialog in the very example of the PopupDialog repo is using a custom view controller with XIBs. With table views and any kind of scroll views, you have to set a fixed height on them. Always make sure the constraints are satisfied. Cheers |
Hi @mwfire, Thanks for your reply. I mean I tried to show a custom UIViewController that contains UITableView, but the UITableView didn't showed up on the page. Please see code/images below for more details (I omit some code to simplify). This is the UIViewController that need to be loaded on the page as a pop-up: And this is what I get (only show the button part which is under UIViewController) : This is the code to show the pop-up:
And this is the custom UIViewController's code:
I have set the constraint properly but still. Do I miss something? Thanks. |
Btw I tried to set the height of tableview on the storyboard, and it work. When I tried to set the height of the tableview programatically under viewDidAppear's method, it doesn't work.. |
@mrjimoy, when programatically setting constraints of a view controller that has a storyboard or XIB related view, make sure to also set the |
@mwfire cool, it works :) thanks.. |
@mwfire And how to do if I want add navigation controller into popup? Please, can you help me? |
Hi, is it possible to load a view controller that contains a table view as a pop-up? I tried to load it but the table view doesn't get rendered. I am not attaching any code here. Please confirm. Thanks.
Best regards,
Jimmy
The text was updated successfully, but these errors were encountered: