Objc EXC_BAD_ACCESS when setting a NSString equal to another
问题 I'm having some really REALLY weird issues with NSString. When I read from an input stream and convert the data to a string I'm not able to set anything equal to that string. Here's the code: NSString *name = r.URL.lastPathComponent; NSString *data; NSInputStream *stream = r.HTTPBodyStream; uint8_t byteBuffer[1]; [stream open]; if (stream) { // Get the request body from the stream. Used for setting the file name if (stream.hasBytesAvailable) { NSInteger bytesRead = [stream read:byteBuffer