You can turn off parental controls on a PS4 with the set passcode, or you can factory reset your device.
To turn off the password on your iPhone, you'll need to open the "Passcode" menu in your Settings app.