Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
实际上我有一个 UDPServer 应用程序,我从 UDPClient 应用程序获得一个 NSData 作为 IP 地址作为响应。但我无法将其转换为 NSString。请帮忙。
//data is your data in NSData format NSString *ConvertedSting=[[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; NSLog(@"Converted String: %@", ConvertedSting);