Ultraviolet photodetectors have been fabricated from n-ZnO/p-NiO core-shell nanowire arrays, the photodetectors can work without an external power source, and show a response only to a narrow spectrum region.Self-powered, highly spectrum-selective photodetectors have been fabricated from n-ZnO/p-NiO coreshell nanowire arrays. In the structure, the outer-layer of the p-NiO acts as a "filter" which can filter out the photons with short wavelength. In this way, highly spectrum-selective photodetectors that only respond to a narrow spectrum range have been obtained.