I am converting string to base64 encoded in iOS 7 and its working fine,but when application is running in iOS 6.1 application get crashed.for iOS 7, I am using :
NSData *decodedData = [[NSData alloc] initWithBase64EncodedString:pdfDataString options:0];
in iOS 6 my application get crashed on this line.Please help me.How can i convert string to Base64 encoded in iOS 6.