A method for managing a user interface, comprising: detecting a contact with a touch screen; determining a predetermined gesture that matches with the contact; and if the contact matches with a predetermined layer changeover gesture, changing over the layer displayed on the user interface, wherein different layers comprise icons of application programs that are not all the same; the method further comprising: if the contact matches with a predetermined application program deletion gesture, deleting the icon of an application program corresponding to the contact in a layer currently displayed on the user interface; wherein: if the user interface is currently displaying a base layer, i.e. a first layer by default, the step of deleting the icon of an application program comprises uninstalling the application program from the electronic device; and if the user interface is currently displaying an extended layer, the icon of the application program is deleted from the currently displayed extended layer, but the application program still exists in the electronic device. detecting a contact with a touch screen; determining a predetermined gesture that matches with the contact; and if the contact matches with a predetermined layer changeover gesture, changing over the layer displayed on the user interface, wherein different layers comprise icons of application programs that are not all the same; the method further comprising: if the contact matches with a predetermined application program deletion gesture, deleting the icon of an application program corresponding to the contact in a layer currently displayed on the user interface; wherein: if the user interface is currently displaying a base layer, i.e. a first layer by default, the step of deleting the icon of an application program comprises uninstalling the application program from the electronic device; and if the user interface is currently displaying an extended layer, the icon of the application program is deleted from the currently displayed extended layer, but the application program still exists in the electronic device. if the contact matches with a predetermined application program deletion gesture, deleting the icon of an application program corresponding to the contact in a layer currently displayed on the user interface; wherein: if the user interface is currently displaying a base layer, i.e. a first layer by default, the step of deleting the icon of an application program comprises uninstalling the application program from the electronic device; and if the user interface is currently displaying an extended layer, the icon of the application program is deleted from the currently displayed extended layer, but the application program still exists in the electronic device. if the user interface is currently displaying a base layer, i.e. a first layer by default, the step of deleting the icon of an application program comprises uninstalling the application program from the electronic device; and if the user interface is currently displaying an extended layer, the icon of the application program is deleted from the currently displayed extended layer, but the application program still exists in the electronic device.