This is already my second iPhone 5, since the last one went into warranty because, ironically, of a wifi problem. The other day, I was just minding my own business when I decided to try to connect to the local wifi of the place I was at the time, and it wouldn't connect. It would find the network, I would put the given password in and it just stayed there. The keyboard would disappear, like it normally would, but instead of returning to the wifi menu in the Setting app, it just stays there saying "Connecting to "X"..." (X being the network's name) and nothing happens, unless I do either thing: -if I press the Home button, be taken to the main screen and then tap back to Settings, it brings me back to the wifi menu, still unconnected; -if I drag down Notification Center or bring up Control Center and bring them up/down again, a pop up shows up saying "Can't connect to the network". Apparently, this is to new networks, since that, when I got home, it automatically connected to my house's wifi. On the spot, I tried reseting everything from factory, and tried to connect to another wifi nearby, since I had a copy of my phone on iTunes, and it worked, it connected, but when I came back to the other wifi spot, it didn't but I scratched the option that it was a router problem, because now I'm at my other apartment in the capital, and tried to connect to wifi (since I reseted everything and had no password saved automatically) and the same thing happened, can't connect. Help me out here, I'm going insane!