Constructing heterojunction, especially S-scheme heterojunction, is an effective strategy for achieving effective separation of photogenerated electron-hole pairs and obtaining high electrode potential. In this study, a unique 0D/1D NiO/CdS S-scheme heterojunction was constructed by solvent evaporation induced self-assembly method. The loading of NiO was found to greatly enhance the photogenerated carrier separation efficiency of CdS by photoluminescence (PL) spectroscopy, electrochemical impedance spectroscopy (EIS), Kelvin probe force microscopy (KPFM) and transient photocurrent tests. The best photogenerated carrier separation effect was observed at a NiO loading ratio of 15 wt% and the largest photocatalytic hydrogen evolution rate reached 7.89 mmol h-1g−1 under visible light, which was 24.66 times that of pristine CdS. In addition, the cycling experiments showed that the loading of NiO led to the alleviation of the photocorrosion phenomenon of CdS, and the performance remained at 94.2 % after five cycles. This is due to the fact that the formation of S-type heterojunction combines the photogenerated holes of CdS with the photogenerated electrons of NiO, which hinders the oxidation of S2- on the surface of CdS, thus alleviating the photocorrosion phenomenon of CdS and improving the stability of CdS. This work furnishes a new strategy for the development of stable and high-performance photocatalysts with inexpensive co-catalysts.