.POST: 查看数据

func downloader(downloader: KTCDownloader, didFinishWithData data: NSData?) {
        
        
        
        let str = NSString(data: data!, encoding: NSUTF8StringEncoding)
        
        
        print(str!)
        
        
        
        
        
        //MARK:-   bejson
        
        
        
        
        
    }

把打印出来的数据,
www.bejson.com
在线解析

OC 版

- (void)downloader:(Downloader *)downloader didFinishWithData:(NSData *)data {
    
    //XML解析
    
    
    NSString * string = [[NSString alloc ] initWithData: data  encoding: NSUTF8StringEncoding ] ;
    
    NSLog(@"%@", string );


你可能感兴趣的:(.POST: 查看数据)