码迷,mamicode.com
首页 >  
搜索关键字:ios 单例    ( 64391个结果
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
一个简单的Java程序
一个.NET技术还是很菜的水平的猿人现在要去学习Java不知道是坏是好,无从得知啊!不过在网上看了好多Java方面的简单例子,感觉Java还是蛮不错的么!不管以后怎么样啦,先开始自己的Java菜鸟之旅吧!建立一个Java项目,建立一个属于自己的包,然后就开始自己的Java之旅。。。创建的时候勾上这个...
分类:编程语言   时间:2014-04-28 12:12:10    阅读次数:552
IOS中的多线程【二】— NSOperation和NSOperationQueue
NSOperationQueue是一套基于Objective-c语言的API。GCD与NSOperationQueue的优缺点:NSOperationQueue:比较安全GCD:没有NSOperationQueue安全,但使用起来简单,快速,还提供了一些操控底层的方法。实际开发中还是以GCD为主。N...
分类:移动开发   时间:2014-04-28 12:06:08    阅读次数:611
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
迷上了代码!