摘要 |
According to various embodiments of the present invention, provided are an electronic device and an ejecting method. The electronic device includes a touch pen including at least one magnet, a case frame which includes a pen guide pass for installing the touch pen, at least one electromagnet which is installed around the pen guide pass and is placed in a position for reacting with the magnetic force when the pen guide pass is totally installed, and at least one processor which controls the push of the magnet to the outside of an electronic device by applying power of the same polarity as the magnet to the magnet according to the automatic ejecting event of the touch pen. Because the touch pen can be ejected by a simple control or command, a user can easily control the electronic device. Also, convenience for using the electronic device can be improved. |