Transferring the registration of an iPhone
You can do so but visiting this link here:
My Support Profile
After you login with your registered Apple ID, you can see all your registered devices. Click on the device and &quot;unregister&quot;.
Once that is complete, your friend can do the same to register it under his/her Apple ID.