a portable electronic device includes a connector case and defines a cavity communicating to the air . a guiding portion is formed in the cavity . the connector case includes at least one interface and an engaging portion . the engaging portion is slidably attached to the guiding portion . the at least one interface is exposed when the connector case slides out from the cavity .