Thank you for visiting Apple Support Communities.
If you are wanting to connect to a Wi-Fi network, here is a resource I would recommend.
iOS: Understanding subscription Wi-Fi networks
If you are wanting to use your iPhone as a personal Wi-Fi hotspot, I would recommend this article.
iOS: Understanding Personal Hotspot
Retrieving data ...