头文件中如下定义宏:/** * @brief 默认空间名(必填项) */#error
必填项#define DEFAULT_BUCKET @""/** * @brief 默认表单API功能密钥 (必填项) */#error 必填项#define
DEFAULT_PASSCODE @...
分类:
移动开发 时间:
2014-04-28 18:15:07
阅读次数:
684
#import "RootViewController.h"@interface
RootViewController ()@end@implementation RootViewController-
(id)initWithNibName:(NSString *)nibNameOrNil bun...
分类:
移动开发 时间:
2014-04-28 17:25:33
阅读次数:
629
#import "RootViewController.h"@interface
RootViewController ()@end@implementation RootViewController-
(id)initWithNibName:(NSString *)nibNameOrNil bun...
分类:
移动开发 时间:
2014-04-28 17:19:46
阅读次数:
596
PHP里做一般的获取内容时,用自带的file_get_contents()函数基本就足够了。当然,这个函数只能抓一些简单的数据,如果是遇到需要登录的页面,就不行了,而且效率及稳定性也不是很强。所以要是有特殊需求的话,还是用curl吧。不仅仅速度快,而且非常稳定,基本上用curl抓取失败的几率很小。而...
分类:
Web程序 时间:
2014-04-28 16:28:42
阅读次数:
763
--->12\n%@", [[NSString
stringWithUTF8String:__FILE__] lastPathComponent],__LINE__,__PRETTY_FUNCTION__ ,
[NSString stringWithFormat:(s), ##__VA_ARGS__...
分类:
移动开发 时间:
2014-04-28 15:19:16
阅读次数:
579
#import "RootViewController.h"@interface
RootViewController ()@end@implementation RootViewController-
(id)initWithNibName:(NSString *)nibNameOrNil bun...
分类:
移动开发 时间:
2014-04-28 15:11:25
阅读次数:
656
1.项目中遇到drawRect来渲染中文,但是调用CGContextShowTextAtPoint方法失败,于是查了些资料整理总结一下2.既然apple能显示中文,那么自然也是支持中文的。查看所有字体:NSArray
*fontFamilies = [UIFontfamilyNames];for(N...
分类:
移动开发 时间:
2014-04-28 13:52:50
阅读次数:
550
分析的过程:1、假设前序遍历的第一个值为a,该值就是原二叉树的根节点。2、在中序遍历结果中查找a。
则在中序遍历中a前面的节点,就是原二叉树a节点左子树的中序遍历结果;在a后面的节点,就是原二叉树a节点右子树的中序遍历结果。3、由第二步得到a节点左子树的节点个数为m,那么在前序遍历中a后面的m个节点...
分类:
其他好文 时间:
2014-04-28 02:32:53
阅读次数:
451
push
服务器证书钥匙串:登入--》证书,选项里面导出证书命名为cert.p12,跟密钥命名为key.p12需要将上面的2个.p12文件转成.pem格式:openssl
pkcs12 -clcerts -nokeys -out cert.pem -in cert.p12openssl pkcs12...
分类:
移动开发 时间:
2014-04-27 23:12:13
阅读次数:
749
本文中的代码托管在github上:https://github.com/WindyShade/DataSaveMethods相对复杂的App仅靠内存的数据肯定无法满足,数据写磁盘作持久化存储是几乎每个客户端软件都需要做的。简单如“是否第一次打开”的BOOL值,大到游戏的进度和状态等数据,都需要进行本...
分类:
移动开发 时间:
2014-04-27 22:44:13
阅读次数:
819