-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 self.navigationController?.pushViewController my MessagesViewController, blank screen #1071
Comments
Make sure if you have overriden any functions that you called Sent with GitHawk |
Here is my whole controller:
|
Still having the same issue, been stuck on this for days. |
I'm sorry there is little I can help with since the problem is probably in your storyboard file. Is the identifier correct? Did you reference the correct storyboard? It is my recommendation that you do not use a storyboard. Just create an instance of ChatController and push it Sent with GitHawk |
Can you provide an example of "Just create an instance of ChatController
and push it"
…On Tue, May 14, 2019 at 12:00 PM Nathan Tannar ***@***.***> wrote:
I'm sorry there is little I can help with since the problem is probably in
your storyboard file. Is the identifier correct? Did you reference the
correct storyboard?
It is my recommendation that you do not use a storyboard. Just create an
instance of ChatController and push it
Sent with GitHawk <http://githawk.com>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1071?email_source=notifications&email_token=AL5GTJX2DRSVP2OQN4QQJVTPVLO3DA5CNFSM4HMU6KZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVL6UPI#issuecomment-492300861>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL5GTJUEBGW6MLTQPDA25UDPVLO3DANCNFSM4HMU6KZA>
.
|
Sent with GitHawk |
I tried this and deleted the scene from the storyboard:
And it still did not work :( |
Ok, can you please define what you mean by blank screen? Maybe attach a gif? Please explain what you have tried to do to fix this. I can not help if you do not give useful debugging information. This isn't reproducible in the example so you probably have an error somewhere. I see in your code that you never fetch messages, so again what do you mean by blank screen when you are not even loading messages. |
What I mean by blank screen is that nothing appears, not even the chat bar at the bottom, when I present the ChatController the bar at the bottom appears. |
ill run it again and see if anything comes up in my log. |
Nothing appears in my log. |
Put a breakpoint in viewDidLoad Does it ever hit? |
Yes, it hits the break point in viewDidLoad |
You are using a custom view controller. Thus you have not properly allowed the ChatController to be the first responder, so the input bar never appears. There is no messages because you did not load any. This is all something I could have quite quickly pointed out early had you been a bit more proactive with the problem description. You ignored the issue template where we ask for such info. Please look at other issues people discuss the input bar not appearing and/or see the embedded example in the ChatExample. Sent with GitHawk |
Where exactly is the example in the ChatExample? |
It's called embedded. But you may more likely need to correct allow Sent with GitHawk |
Okay, I created this view controller with no storyboard scene
and I am doing my push like so:
|
But where is your ChatViewController held? Before you saw you had some custom drawer controller. I think it's the reason the input bar is not appearing because it doesn't allow your ChatViewController to be the first responder Sent with GitHawk |
My bad, I named my View Controller to ChatViewController...bad name, I changed the name to ChatContainerController but I still have the same issue. ChatContainerController is like your MessageContainerController and my ChatController is a MessagesViewController |
I did notice that return chatController.canBecomeFirstResponder is not being called |
I have break points in both controllers and they are both being called. |
Any additional information you need? chatController.canBecomeFirstResponder is not being called |
Again I will state the issue is you custom drawer container controller. If you built it yourself you should review https://developer.apple.com/library/archive/featuredarticles/ViewControllerPGforiPhoneOS/ImplementingaContainerViewController.html Sent with GitHawk |
This issue has been marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This issue has been auto-closed because there hasn't been any activity for at least 21 days. However, we really appreciate your contribution, so thank you for that! 🙏 Also, feel free to open a new issue if you still experience this problem 👍. |
Hi All,
I am trying to push my MessagesViewController, but when I do, I get a blank screen. I am able to present the view controller, but not push. What am I doing wrong?
The text was updated successfully, but these errors were encountered: