Yes, an iPhone can be used to detect hidden cameras. There are apps available in the App Store that use the iPhone's camera to scan for hidden cameras by detecting infrared signals. Just download and install one of these apps and follow the instructions to scan for hidden cameras in your surroundings.