Open azhm opened 6 years ago
code : NSString decode64(NSString str){ str = [str stringByReplacingOccurrencesOfString:@"-" withString:@"+"]; str = [str stringByReplacingOccurrencesOfString:@"_" withString:@"/"]; if(str.length%4){ NSInteger length = (4-str.length%4) + str.length; str = [str stringByPaddingToLength: length withString:@"=" startingAtIndex:0]; } NSData decodeData = [[NSData alloc] initWithBase64EncodedString:str options:0]; NSString decodeStr = [[NSString alloc] initWithData:decodeData encoding:NSUTF8StringEncoding]; return decodeStr; }
I seem to get this error for any object that is not defined in a particular file.
hello I just bought it. Problems encountered in use how to solve it. Thanks