Printing NSData using NSLog

后端 未结 5 953
孤城傲影
孤城傲影 2020-12-07 18:26

How can I print the contents of an NSData object using NSLog:

-(void) post:(NSString*) msg to:(NSString*) link{
    NSString *myRequestString = [NSString str         


        
5条回答
  •  抹茶落季
    2020-12-07 19:06

    One thing you must consider too:

    NSLog(@"%@", *returnData); // this is wrong.
    
    NSLog(@"%@", returnData); // this is correct.
    

    I hope I could help!

提交回复
热议问题