Top "Nsdata" questions

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

NSData dataWithContentsOfURL

I have this method for button click (download). The problem is that it is terminating due to an exception: [Session …

iphone uiimage nsdata nsurl
Best way to serialize an NSData into a hexadeximal string

I am looking for a nice-cocoa way to serialize an NSData object into a hexadecimal string. The idea is to …

iphone notifications nsdata
Convert UIImage to NSData and save with core data

I have a UIImageView whose image gets set via UIImagePicker - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{ [picker dismissViewControllerAnimated:…

ios objective-c core-data nsdata
convert NSData Length from bytes to megs

I am trying to NSLog the number of megs my NSData object is however currently all I can get is …

ios nsdata nslog
Convert unsigned char array to NSData and back

How do you convert an unsigned char array to an NSData in objective c? This is what I am trying …

iphone objective-c nsdata arrays
Byte Array to NSData

In a WebService JSON response is coming. In the response, there is image is coming as a byte array. I …

iphone ios objective-c bytearray nsdata
Finding image type from NSData or UIImage

I am loading an image from a URL provided by a third-party. There is no file extension (or filename for …

iphone ios uiimage nsdata persist
NSData to display as a string

I am building an iPhone app and stuck with the following: unsigned char hashedChars[32]; CC_SHA256([inputString UTF8String], [inputString …

iphone nsstring nsdata
How to convert String to byte in Swift?

How to convert String to byte in Swift? Like String .getBytes()in Java.

swift string nsdata
Create an Array in Swift from an NSData Object

I'm trying to store an array of integers to disk in swift. I can get them into an NSData object …

ios arrays swift nsdata