When you connect your iPhone or iPad to a computer for the first time, a prompt will appear asking if you want to "Trust This Computer." By trusting a computer, your iOS device allows it to sync and access data, such as photos, videos, contacts, and messages. The computer remains trusted until you change the privacy settings on your iPhone.
If you choose not to trust the computer, you block access to your device's data, and the "Trust This Computer" prompt appears every time you connect your iPhone to that computer.