After requesting a network timeout using afnetworking, why do two alertview prompt “request timeout” pop up?

  ios, question

Where did afnetworking call alertview’s show method?
I didn’t find it in its code inside, and why did I call it twice?

AFNetworking itself does not display a UIAlertView, but in its corresponding callback function, the user realizes the logic about UI himself:

[manager GET:@"" parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
 NSLog(@"JSON: Percent @), responseobject);
 //Carry out successful operations here
 } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
 NSLog(@"Error: percentage @", error);
 //Prompt for error messages here, such as popup timeout UIAlertView

The reason why two UIAlertView pop up is probably the logic error of your calling code.