码迷,mamicode.com
首页 >  
搜索关键字:ios 网络操作    ( 56436个结果
iOS 中 #error宏 的使用的一个例子
头文件中如下定义宏:/** * @brief 默认空间名(必填项) */#error 必填项#define DEFAULT_BUCKET @""/** * @brief 默认表单API功能密钥 (必填项) */#error 必填项#define DEFAULT_PASSCODE @...
分类:移动开发   时间:2014-04-28 18:15:07    阅读次数:684
ios-表视图-demo4-内容自己适应高度
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bun...
分类:移动开发   时间:2014-04-28 17:25:33    阅读次数:629
ios-表视图-demo3-单选
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bun...
分类:移动开发   时间:2014-04-28 17:19:46    阅读次数:596
iOS 小知识-tips
--->12\n%@", [[NSString stringWithUTF8String:__FILE__] lastPathComponent],__LINE__,__PRETTY_FUNCTION__ , [NSString stringWithFormat:(s), ##__VA_ARGS__...
分类:移动开发   时间:2014-04-28 15:19:16    阅读次数:579
ios-表视图-demo5-索引
#import "RootViewController.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bun...
分类:移动开发   时间:2014-04-28 15:11:25    阅读次数:656
ios:CGContextRef 渲染中文问题
1.项目中遇到drawRect来渲染中文,但是调用CGContextShowTextAtPoint方法失败,于是查了些资料整理总结一下2.既然apple能显示中文,那么自然也是支持中文的。查看所有字体:NSArray *fontFamilies = [UIFontfamilyNames];for(N...
分类:移动开发   时间:2014-04-28 13:52:50    阅读次数:550
IOS-根据ip获取当前城市的编号
IOS 通过ip地址获取当前城市的编号 //解析网址通过ip 获取城市天气代码 NSURL *url = [NSURL URLWithString:@"http://61.4.185.48:81/g/"]; // 定义一个NSError对象,用于捕获错误信息 NSError *error; NSS....
分类:移动开发   时间:2014-04-28 02:36:49    阅读次数:832
已知二叉树的前序遍历结果和中序遍历结果,请重建原来的二叉树
分析的过程:1、假设前序遍历的第一个值为a,该值就是原二叉树的根节点。2、在中序遍历结果中查找a。 则在中序遍历中a前面的节点,就是原二叉树a节点左子树的中序遍历结果;在a后面的节点,就是原二叉树a节点右子树的中序遍历结果。3、由第二步得到a节点左子树的节点个数为m,那么在前序遍历中a后面的m个节点...
分类:其他好文   时间:2014-04-28 02:32:53    阅读次数:451
iOS 推送证书
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
iOS数据持久化存储
本文中的代码托管在github上:https://github.com/WindyShade/DataSaveMethods相对复杂的App仅靠内存的数据肯定无法满足,数据写磁盘作持久化存储是几乎每个客户端软件都需要做的。简单如“是否第一次打开”的BOOL值,大到游戏的进度和状态等数据,都需要进行本...
分类:移动开发   时间:2014-04-27 22:44:13    阅读次数:819
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!