Top "Nsdata" questions

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

iPhone - int to NSData?

I'm making an iPhone app where I want to save state of the Application. This includes an int property which …

iphone objective-c nsdata
Unrecognized selector sent to instance while archiving data (NSCoding)

-(void)transformObjects:(NSMutableArray*)array key:(NSString*)key { NSMutableArray* archiveArray = [[NSMutableArray alloc]initWithCapacity:array.count]; for (Furniture *furniture in array) { // …

ios nsdata unrecognized-selector
Copy a part of NSData byte array to another NSData type

I have an original NSData type which contains let's say 100 bytes. I want to get 2 other NSData types. The first …

objective-c nsdata
init NSData to nil SWIFT

How can I init NSData to nil ? Because later, I need to check if this data is empty before using …

ios swift nsdata
Slow start for AVAudioPlayer the first time a sound is played

I'm trying to eliminate startup lag when playing a (very short -- less than 2 seconds) audio file via AVAudioPlayer on …

iphone caching audio nsdata avaudioplayer
is it possible to save NSMutableArray or NSDictionary data as file in iOS?

I want to save an NSMutableArray or NSDictionary as a permanent file. Then, I would like to reopen the file …

ios cocoa-touch nsmutablearray nsdictionary nsdata
Is there a practical way to compress NSData?

I haven't seen any documentation on the topic, but that doesn't mean it doesn't exist.

ios nsdata data-compression
Convert UIImage to NSData without using UIImagePngrepresentation or UIImageJpegRepresentation

I Need to convert UIImage to NSData but without using UIImagePngRepresentation or UIImageJpegRepresentation, for images from photolib i can use …

ios uiimage nsdata assets uiimagepngrepresentation
Encrypted NSData to NSString in obj-c?

I have an iPhone app which encrypts an inputted NSString using CCCrypt (AES256) and a plaintext key. The string and …

iphone objective-c encryption nsstring nsdata
Swift structs to NSData and back

I have a struct containing a struct and an NSObject that I want to serialize into an NSData object: struct …

swift serialization struct nsdata nskeyedarchiver