-3
-(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
NSString *str = [NSString stringWithUTF8String:data.bytes];
NSLog(@"%@",str);
}
請轉換這個目標C函數在迅速如何stringWithUTF8String轉換爲迅速
難道你看[代表參考(https://developer.apple.com/library/mac/documentation/Foundation/Reference/NSURLConnectionDataDelegate_protocol/#//apple_ref/occ/intfm/NSURLConnectionDataDelegate/connection: didReceiveData :)?你讀過這個完美的[Obj-C in Swift](https://developer.apple.com/library/ios/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithObjective-CAPIs.html)手冊嗎? –
請閱讀http://stackoverflow.com/help/how-to-ask。告訴我們你嘗試過什麼,哪些不起作用。 –