How to Dry Out a Wet iPhone
To dry out a wet iPhone, start by turning off the phone as soon as possible and removing the sim card by inserting a paperclip into the hole on the card tray. Next, wipe the entire phone down with a towel, and try shaking the water out of the ports. Then, let the phone air dry, or submerge it in a drying agent, such as rice or silica gel. After 2 days, reinsert the sim card and try turning on your phone to see if it works.
Take the phone out of the water. While this step is logical, you may start to panic as soon as you drop it in the water. Calm down, and pull it out as quickly as you can. Unplug it. If the phone happens to be plugged in, unplug it as soon as possible. Be careful when doing so, as you don't want to electrocute yourself. That is, be sure not to get your fingers near the connection. Hold the phone in one hand, and pull out the charger by grasping the cord several inches down. Normally, you don't want to pull from the cord because it ends up fraying it, but in this case, you need to do so to keep yourself from being electrocuted. Turn the phone off. Ideally, you'd want to remove the battery first. Since you can't do that with an iPhone, the next best thing is to turn off the phone as soon as possible. Take out the sim card. You'll need a paperclip or the sim card tool. Find the sim card tray on your iPhone. It is usually along the right side of the phone. You'll notice a small hole. Insert the paperclip or tool into the hole. The sim card tray will pop out. Leave the whole tray out for now. Wipe it down with a towel. Run a towel over your device to dry the outside of the device as quickly as possible. You can also run it over the ports to help draw out the water. Remove water from the ports. Try shaking out the water. You can also carefully blow out water with compressed air. However, you definitely do not want to blow it back inside the phone, so be careful. To use compressed air, hold the can of air so that it's blowing across the hole rather than into it. Spray the air, and the water should jet out the other side. Pick a type of drying element. Some people use regular rice to dry it out, but that is not the most effective option. Instant rice is somewhat better, but it can also get rice in the ports. A better option is silica gel. Silica gel is what comes in the little packets along with many electronic items. It absorbs water better than rice. You can try gathering enough from your home or trying purchasing them from a craft store. You'll need enough to surround the phone. A final option is a drying pouch, specifically designed for this purpose. You can find them online or at electronics stores. If you can't find enough silica gel packets, you can try crystallized kitty litter, which is essentially the same thing. Some tests show that it may be best just to leave the phone in open air rather than trying to submerge it in a drying agent. Submerge the phone. If you use rice, protect your phone from the rice by wrapping it in a paper towel before submerging it. Submerge the phone in a bowl of rice. For the silica gel packets, surround the phone with as many of them as you have. For a drying pouch, simply drop the phone in the bag, and seal the pouch. Leave it to dry. Let the phone dry for at least 2 days. You want to make sure the inside components are dry. Otherwise, you can short it out when you turn it on. Replace the sim card. Insert the sim card tray back into the phone. Make sure it goes in the same way it came out. Try turning it on. After it is completely dry, you can try turning it on again. If you're lucky, it will work, and you can continue using your phone. 
Take the phone out of the water. Unplug it. Turn the phone off. Take out the sim card. Wipe it down with a towel. Remove water from the ports. Pick a type of drying element. Submerge the phone. Leave it to dry. Replace the sim card. Try turning it on. 