ADDRESPONSE - ADDING TO MEMORY ONLY: http://XXXXXXXX的续集

昨天在做iOS6的兼容时出现了这个问题,只要设置下手机就可以消除这个Log了。今天在次遇到了这个问题,设置后也不起作用,还有其它的错误提示:"-[NSConcreteData
initWithBase64EncodedString:options:]: unrecognized selector sent to instance
",在次根据这个提示在代码中找到了initWithBase64EncodedString:options这个,看了下api
这个方法是在iOS7才出现的,在iOS6中是不起作用的,最后修改了下代码就没有这个提示了。代码如下:

//这里要做ios6的兼容
        NSData *certData;
        if ([NSData instancesRespondToSelector:@selector(initWithBase64EncodedString:options:)]) {
            certData = [[NSData alloc] initWithBase64EncodedString:certString options:0];
        }else{
            certData = [[NSData alloc] initWithBase64Encoding:certString];
        }

参考:http://www.itstrike.cn/question/297e76c6-2d45-4b5b-9df3-1e4f7d200d88.html

http://stackoverflow.com/questions/21392190/base64encodedstringwithoptions-crashing-on-sentest

时间: 2024-10-05 10:59:18

ADDRESPONSE - ADDING TO MEMORY ONLY: http://XXXXXXXX的续集的相关文章

Virtualizing memory type

A processor, capable of operation in a host machine, including?memory management logic to support a plurality of?memory?types for a physical?memory access by the processor, and virtualization support logic to determine a host memory?type?for a refere

OS note

Since I have no Input method installed in my ubuntu this moment yet, I have to type everything in English. Maybe tranlate this in the future 1. To implement the process model, the operating system maintain a table(usually an array of structure), call

How Network Load Balancing Technology Works--reference

http://technet.microsoft.com/en-us/library/cc756878(v=ws.10).aspx In this section Network Load Balancing Terms and Definitions Network Load Balancing Architecture Network Load Balancing Protocols Application Compatibility with Network Load Balancing

jQuery源码解析

( function( global, factory ) { "use strict"; if ( typeof module === "object" && typeof module.exports === "object" ) { module.exports = global.document ? factory( global, true ) : function( w ) { if ( !w.document ) {

ocp 1Z0-043 1-60题解析

1.You observe that a database performance has degraded overa period of time. While investigating the reason, you find the size ofthe database buffer cache is not large enough to cache all the needed datablocks. Which advisory component wold you refer

(转)《linux性能及调优指南》 3.3 内存瓶颈

翻译:Hank (http://blog.csdn.net/fireroll)版权所有,尊重他人劳动成果,转载时请注明作者和原始出处及本声明.原文名称:<Linux Performance and Tuning Guidelines>原文地址:http://www.redbooks.ibm.com/abstracts/redp4285.html 3.3 内存瓶颈On a Linux system, many programs run at the same time. These progra

Video processing systems and methods

BACKGROUND The present invention relates to video processing systems. Advances in imaging technology have led to high resolution cameras for personal use as well as professional use. Personal uses include digital cameras and camcorders that can captu

《linux性能及调优指南》 3.3 内存瓶颈

摘要:3.3内存瓶颈OnaLinuxsystem,manyprogramsrunatthesametime.Theseprogramssupportmultipleusers,andsomeprocessesaremoreusedthanothers.Someoftheseprogramsuseaportionofmemorywhiletherestare"sleeping."Whenanapplicationaccessescache,theperformanceincrease 3

Adding New Functions to MySQL(User-Defined Function Interface UDF、Native Function)

catalog 1. How to Add New Functions to MySQL 2. Features of the User-Defined Function Interface 3. User-Defined Function 4. UDF Argument Processing 5. UDF Return Values and Error Handling 6. UDF Compiling and Installing 7. Adding a New Native Functio