A method for switching photo shooting interface, the method being applied to a terminal with a front camera and a rear camera being respectively arranged on a front surface and a rear surface of a slide rear cover, and the method comprising: displaying a first user interface that enables a shooting program to shoot a photo using the rear camera on the terminal; acquiring a first cover slide event indicating that the slide rear cover is slid out; and controlling , based on the first cover slide event, the shooting program to switch the first user interface to a second user interface that enables the shooting program to shoot a photo using the front camera; characterized in that , the controlling the shooting program to switch the first user interface to a second user interface that enables the shooting program to shoots a photo using the front camera comprises: acquiring configuration information corresponding to a switching button control in the shooting program from a configuration file defined in the operating system of the terminal, the switching button control being a control for switching the front camera and the rear camera; generating , based on the configuration information of the switching button control, a first simulation event for simulating trigger of the switching button control on the first user interface of the shooting program; and sending the first simulation event to the shooting program, the first simulation event being used for triggering the shooting program to switch the first user interface to the second user interface. displaying a first user interface that enables a shooting program to shoot a photo using the rear camera on the terminal; acquiring a first cover slide event indicating that the slide rear cover is slid out; and controlling , based on the first cover slide event, the shooting program to switch the first user interface to a second user interface that enables the shooting program to shoot a photo using the front camera; characterized in that , the controlling the shooting program to switch the first user interface to a second user interface that enables the shooting program to shoots a photo using the front camera comprises: acquiring configuration information corresponding to a switching button control in the shooting program from a configuration file defined in the operating system of the terminal, the switching button control being a control for switching the front camera and the rear camera; generating , based on the configuration information of the switching button control, a first simulation event for simulating trigger of the switching button control on the first user interface of the shooting program; and sending the first simulation event to the shooting program, the first simulation event being used for triggering the shooting program to switch the first user interface to the second user interface. acquiring configuration information corresponding to a switching button control in the shooting program from a configuration file defined in the operating system of the terminal, the switching button control being a control for switching the front camera and the rear camera; generating , based on the configuration information of the switching button control, a first simulation event for simulating trigger of the switching button control on the first user interface of the shooting program; and sending the first simulation event to the shooting program, the first simulation event being used for triggering the shooting program to switch the first user interface to the second user interface. <EOS>