The steps to change an iPhone pin code to a new one can be summarized as going to the settings app, selecting Touch ID & Passcode (or Face ID & Passcode), entering the current pin, choosing Change Passcode, and following the prompts to set a new pin.