???????????AFNetworking?????????????????????????????????????????????????£?

??????Info.plist?????NSAppTransportSecurity????Dictionary?? ??NSAppTransportSecurity?????NSAllowsArbitraryLoads????Boolean??????YES??????λ?????£?

????iOS9??http????????????????????????????????????????????????????????????????????£??????????????????????????????????????????????????????????????С???????????????????????????????£?
????//waitForExpectationsWithTimeout????????????????????????С?
????#define WAIT do {\
????[self expectationForNotification:@"RSBaseTest" object:nil handler:nil];\
????[self waitForExpectationsWithTimeout:30 handler:nil];\
????} while (0)
????#define NOTIFY \
????[[NSNotificationCenter defaultCenter]postNotificationName:@"RSBaseTest" object:nil]
??????????????testRequest??
????-(void)testRequest{
????// 1.????????????
????AFHTTPRequestOperationManager *mgr = [AFHTTPRequestOperationManager manager];
????mgr.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"text/html"??nil];
????// 2.????GET????
????[mgr GET:@"http://www.weather.com.cn/adat/sk/101110101.html" parameters:nil success:^(AFHTTPRequestOperation *operation?? id responseObject) {
????NSLog(@"responseObject:%@"??responseObject);
????XCTAssertNotNil(responseObject?? @"???????");
????NOTIFY //???????
????} failure:^(AFHTTPRequestOperation *operation?? NSError *error) {
????NSLog(@"error:%@"??error);
????XCTAssertNil(error?? @"???????");
????NOTIFY //???????
????}];
????WAIT  //???
????}
?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????С?????????????????????????STAlertView???????????á?
????STAlertView????÷?????
????self.stAlertView = [[STAlertView alloc]initWithTitle:@"?????" message:nil textFieldHint:@"??????????????" textFieldValue:nil cancelButtonTitle:@"???" otherButtonTitle:@"???" cancelButtonBlock:^{
????//??????????????
????[self testAlertViewCancel];
????NOTIFY //???????
????} otherButtonBlock:^(NSString *b) {
????//???????????
????[self alertViewComfirm:b];
????NOTIFY //???????
????}];
????[self.stAlertView show];
????· ?????????????????????LeanCloud ????????????????????????????????
????· ??????????github
??????????÷????????????????????????????????н?????????????????????????????????????????????