Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXC #12

Open
MangeshVyas opened this issue Feb 7, 2014 · 8 comments
Open

EXC #12

MangeshVyas opened this issue Feb 7, 2014 · 8 comments

Comments

@MangeshVyas
Copy link

+ (NSString *)stringWithBase64EncodedString:(NSString *)string
{
    NSData *data = [NSData dataWithBase64EncodedString:string];
    if (data)
    {
        return [[self alloc] initWithData:data encoding:NSUTF8StringEncoding];
    }
    return nil;
}

screen shot 2014-02-07 at 3 36 01 pm

@nicklockwood
Copy link
Owner

There is no need to use this library any more. See here for how to use the built-in Base64 apis instead (iOS 4 and up).

http://iosdevelopertips.com/best-practices/eveything-you-need-to-know-about-ios-and-os-x-deprecated-apis.html

@MangeshVyas
Copy link
Author

Thanks Nicklockwood, But I am getting this issue on iOS 6.

@nicklockwood
Copy link
Owner

Are you using ARC?

@MangeshVyas
Copy link
Author

Yes

@nicklockwood
Copy link
Owner

Hmm. I can't see any reason why that would crash. Are you able to send me a project that demonstrates the issue?

@MangeshVyas
Copy link
Author

It is working in all other places like encoding image and other text but in case of decoding "bankCode":"dGVzdA==" app getting crash , while i am able to decode this string online.

@MangeshVyas
Copy link
Author

Ahhhhhh, Thanks nicklockwood for your kind suport and prompt response. i resolved this issue.
It is due to build setting I enable Guard malloc and Zommbie object and Log exception in build setting. Once i remove this check it start working. Thank You

@nicklockwood
Copy link
Owner

No problem, glad you found a solution :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants