Evaluation of the hydrophobic/hydrophilic interaction individually between the sorbent and target compounds in sample pretreatment is a big challenge. Herein, a smart titanium substrate with switchable surface wettability was fabricated and selected as the sorbent for the solution. The titanium wires and meshes were fabricated by simple hydrothermal etching and chemical modification so as to construct the superhydrophilic and superhydrophobic surfaces. The micro/nano hierarchical structures of the formed TiO2 nanoparticles in situ on the surface of Ti substrates exhibited the switchable surface wettability. After UV irradiation for about 15.5 h, the superhydrophobic substrates became superhydrophilic. The morphologies and element composition of the wires were observed by SEM, EDS, and XRD, and their surface wettabilities were measured using the Ti mesh by contact angle goniometer. The pristine hydrophilic wire, the resulting superhydrophilic wire, superhydrophobic wire, and the UV-irradiated superhydrophilic wire were filled into a stainless tube as the sorbent instead of the sample loop of a six-port valve for on-line in-tube solid-phase microextraction. When employed in conjunction with HPLC, four kinds of wires were comparatively applied to extract six estrogens in water samples. The optimal conditions for the preconcentration and separation of target compounds were obtained with a sample volume of 60 mL, an injection rate of 2 mL/min, a desorption time of 2 min, and a mobile phase of acetonile/water (47/53, v/v). The results showed that both the superhydrophilic wire and UV-irradiated wire had the highest extraction efficiency for the polar compounds of estrogens with the enrichment factors in the range of 20–177, while the superhydrophobic wire exhibited the highest extraction efficiency for the non-polar compounds of five polycyclic aromatic hydrocarbons (PAHs). They demonstrated that extraction efficiency was mainly dependent on the surface wettability of the sorbent and the polarity of the target compounds, which was in accordance with the molecular theory of like dissolves like.