Top "Nsdata" questions

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

Storing CLLocationCoordinates2D in NSMutableArray

After some searching, I got the following solution : reference. CLLocationCoordinate2D* new_coordinate = malloc(sizeof(CLLocationCoordinate2D)); new_coordinate->…

cocoa nsmutablearray nsdata
NSData won't accept valid base64 encoded string

I'm implementing JSON Web Token authentication on the iOS (7) cient-side. It's working nicely. My app rceives tokens, and can make …

ios json base64 nsdata jwt
iOS UIImageJPEGRepresentation error: Not a JPEG file: starts with 0xff 0xd9

I am writing a .jpg file to my app's Documents directory like this: NSData *img = UIImageJPEGRepresentation(myUIImage, 1.0); BOOL retValue = [img …

iphone uiimageview uiimage nsdata uiimagejpegrepresentation
Convert any Data Type into NSData and back again

I'm working on an app where you can send either a text, image or a contact over Multipeer Connectivity to …

objective-c core-data ios7 nsdata multipeer-connectivity
How to convert CMSampleBufferRef to NSData

How do you convert CMSampleBufferRef to NSData? I've managed to get the data for an MPMediaItem by following Erik Aigner's …

objective-c ios nsdata cmsamplebufferref
New NSData with range of old NSData maintaining bytes

I have a fairly large NSData (or NSMutableData if necessary) object which I want to take a small chunk out …

nsdata truncate nsmutabledata
Convert Gif image to NSData

I have a gif image in my photo album. When I use the UIImagePickerController to select that image, I need …

ios nsdata gif
NSData from UInt8

I have recently found a source code in swift and I am trying to get it to objective-C. The one …

ios objective-c xcode swift nsdata
NSImage to NSData as PNG Swift

I am writing a Mac app based on an iOS app. The code below converts a UIImage to NSData to …

parse-platform uiimage nsdata nsimage uiimagepngrepresentation
Compute a checksum on the iPhone from NSData

Using the iPhone SDK, I'm having the user select images from the image picker. If the user selects an image …

iphone nsdata