1. A method of controlling a UI (user interface) of an electronic device by using a virtual plane, the method comprising: detecting at least four points corresponding to at least four fingertips of a user from two or more images displayed in an image display unit of a first image capture device and an image display unit of a second image capture device; calculating three-dimensional (3D) spatial coordinates of each of the detected at least four points; initializing the virtual plane, used to control the UI of the electronic device; determining a location of a marker indicated by a specific image on the virtual plane; displaying a screen pointer corresponding to the marker at a position where the marker is located in an image display unit corresponding to the virtual plane; and selecting a menu of the electronic device pointed to by the screen pointer while moving the marker, wherein the virtual plane is initialized based on the three-dimensional spatial coordinates of the detected at least four points such that the virtual plane passes through a point corresponding to a center of the detected at least four points.