Recently in the making of an app to use H5, one of the requirements is to click on the H5 control pop-up system album, through the H5 input file defined <input type= "file" class= "Ios_only" accept= "image/*" Capture= "Camera" > Call system album while you can pop up the following Alertview
But when you click on the album but the album, instead of jumping to the landing surface, viewing the console found that the following errors were reported:
According to the literal meaning of my four control master controller Tabbarcontrollerviewcontroller is not in the Keywindow view level, It may be because of this, when the system's Alertview jumps out because the root controller is not the current controller, it crashes, challenging the initial root controller, Later changed the Keywidow of the Rootviewcontroller for Tabbarcontrollerviewcontroller can be. As shown in the following:
If you have any questions, you can contact my QQ547769931.
iOS input file call album controller disappears jump to landing page