ZnO, a promising photoanode material, faces significant challenges in achieving high-efficient photoelectrochemical (PEC) type UV photodetectors due to inadequate charge separation and sluggish surface reaction kinetics. Constructing heterojunction nanostructures by coupling of p-NiO to n-ZnO nanowire arrays with well-aligned energy band positions presents a feasible strategy for enhancing PEC-type photodetector performance. Herein, we demonstrate that the designed ZnO@NiO core–shell nanowire arrays form a spatial charge transfer channel, facilitating efficient generation and extraction of charge carriers. The exceptional catalytic properties of NiOOH, derived from the transformation of NiO in an aqueous alkaline environment, serve as a potent co-catalyst, effectively accelerating the kinetics of the surface oxygen evolution reaction. Benefiting from the synergistic effect of the heterojunction and cocatalyst, the optimized photoanode achieves a high responsivity of 438.36 mA/W, a large detectivity of 4.85 × 1012 Jones, and rapid response time of 150.05/150.26 ms, while simultaneously exhibiting long-time PEC stability. This work highlights the critical role of nanostructure design in developing high-performance self-powered UV photodetectors.