Top "Nsdata" questions

The NSData class is an Apple class for holding generic data.

NSMutableData remove bytes?

I can add bytes to a NSMutableData instance easily by using the appendData method, however I do not see any …

objective-c nsdata nsmutabledata
Best way to generate NSData object with random bytes of a specific length?

If I create a new NSData object of a specific size using dataWithBytes:length:, what is the most efficient way …

iphone objective-c c nsdata
How do I convert an NSNumber to NSData?

I need to transmit an integer through GameKit using sendDataToAllPeers:withDataMode:error: but I don't know how to convert my …

iphone objective-c ios nsdata gamekit
How to downscale a UIImage in IOS by the Data size

I am looking to downscale a UIImage in iOS. I have seen other questions below and their approach on how …

ios objective-c ios6 uiimage nsdata
How to convert AVAsset to NSData or save it to file manager

I am trying to do that using AVAsset to record Audio file and then after first i store it on …

ios objective-c iphone nsdata
Determine MIME Type of NSData Loaded From a File

For various reasons I am intercepting http requests and loading content from files in my app's document directory using NSURLProtocol. …

iphone objective-c mime-types nsdata
NSKeyedArchiver archivedDataWithRootObject:

Is the parameter for NSKeyedArchiver archivedDataWithRootObject: supposed to be the array I am trying to save, or the array converted …

objective-c cocoa-touch nsmutablearray nsdata nskeyedarchiver
How do we clear out contents in NSMutableData

How do we clear an NSMutableData without using release and then re-alloc/init again to be used again? I was …

objective-c iphone nsdata
Decode a base64 data to image

This code doesn't working with Swift 3 anymore. imageData = NSData(base64EncodedString: mediaFile, options: NSDataBase64DecodingOptions.fromRaw(0)!) So is this one. …

uiimage base64 swift3 nsdata xcode8
Does -dataWithContentsOfURL: of NSData work in a background thread?

Does -dataWithContentsOfURL: of NSData work in a background thread?

iphone nsdata