Call
connectionInProgress = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES];
when I disconnect and connect the Internet to the simulator. One call to initWithRequest: calls neither connectionDidFinishLoading:, nor calls didFailWithError:.
connectionDidFinishLoading:
didFailWithError:
I call in a loop and get the following results (when disconnected).
Error DidFailWithError: Fetch: Offline Internet connection.
The next call in a few seconds (when reconnecting the Internet).
DidFailWithError: Fetch failed: A server with the specified host name could not be found.
And the next time I call neither of the two callbacks, it gets called.
I ran into the same issue with the iPhone simulator.
6 , googling stackoverflow : iPhone ! (, , , ).
Wi-Fi/- mac, , iPhone! ( , , Wi-Fi )
( NSURLConnection) iPhone 4, , makeFailWithError! !
, Xcode 4.0 iOS 4.3
, : iOS, , , !
Source: https://habr.com/ru/post/1793154/More articles:Are custom buttons in the warning window possible? - javascriptWhat is the shortest code for writing text / image in HWND - c ++Как удалить файлы из нескольких неизвестных папок из одного файла bat? - directoryRails, scope, OR and unions - scopeTeam Foundation Server 2010 branching configuration - tfsDoes jQuery Lazy make a real profit? - performanceHow do you download the rails application on a remote server in Development? - ruby-on-railsUITableView: hide cells animated? - objective-cHudson performs only one task, not parallel - javaPayPal integration with iOS application compilation error - iosAll Articles