I am making a network based application and I’ve stumbled across a little dilema. My app connects to the server and the application uses the keyboard and displays a modal view when certain buttons are pressed. This is all fine and working as I want it to. My issue is when the server loses connection whether for maintenance or we lose connection the app goes back to the login screen, but the keyboard or modal views don’t get dismissed. Do I have to keep track of these to dismiss them or is there some global command that I could send to dismiss everything.
Thanks in advance for the help
There are at least a couple of different ways to dismiss the keyboard:
One of these should work:
There is no “global” way to dismiss all open modal views. You will need to specifically dismiss any modal views you’ve opened using: