自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

iPhone开发——Eating Apple,Earning dollars

程序员的两个观念:1.程序不是编出来的,而是调出来的! 2.编程就是把具体的事务抽象化的过程!

  • 博客(14)
  • 收藏
  • 关注

原创 给sqlite数据库加密的两种方法

一个是采用SQLCipherNeed to store sensitive information in your app? SQLCipher extends SQLite enabling transparent encryption and decryption of data using AES. Its source is available on Git

2010-03-31 13:07:00 4228

转载 把图片切成圆角代码

static void addRoundedRectToPath(CGContextRef context, CGRect rect, float ovalWidth,                 float ovalHeight){    float fw, fh;    if (ovalWidth == 0 || ovalHeight == 0) {    CGCont

2010-03-30 08:23:00 987

转载 Objective —C 的单例模式 Singleton实现

static DataManager *sharedDataManager = nil;+ (DataManager *) sharedManager{    @synchronized(self) {        if (sharedDataManager == nil)  {            [

2010-03-11 09:05:00 4545

转载 分享一段Objective-C可调用的游戏中播放音乐

首先需要引入AudioTool 这个framework- (id)initWithPath:(NSString *)path{ UInt32 size, maxPacketSize; char *cookie; int i; if (gThereIsAnActiveTrack)

2010-03-11 09:05:00 1775

转载 [iphone-cocos2d]把label显示到页面上

//以上这两行是.h文件的定义Label *label;@property (nonatomic, retain) Label *label;//这里来到.m文件@synthesize label;@implementation AClass//初始化-(id) init{ 

2010-03-11 09:03:00 1029

转载 [OpenFeint-cocos2d]整合教程

Integrating OpenFeint with Cocos2D-iPhone ApplicationsOpenFeint is a service that enables your iPhone/iPod Touchapplication the ability to provide online score tracking.  The ser

2010-03-11 09:00:00 1475

转载 [iphone SDK] nonatomic,readonly,retain,readwrite....的理解

1.readonly表示这个属性是只读的,就是只生成getter方法,不会生成setter方法.2.readwrite,设置可供访问级别3.retain,是说明该属性在赋值的时候,先release之前的值,然后再赋新值给属性,引用再加1。4.nonatomic,非原子性访问,不加同步,多线程并发访问会提高性能。注意,如果不加此属性,则默认是两个访问方法都为原子型事务访问。

2010-03-11 08:59:00 1758

转载 iphone如何调试EXC_BAD_ACCESS

这个错误大概是由于,给一个释放过的东西负值,或者是操作。C#兄弟姐妹就理解成NullRef吧。 一个有效的快速的操作方式就是设置NSZombiEnable这个环境变量。到Xcode中,左侧,excutable,点你的工程,绿色的那个,然后点上面panel中有一个info蓝色的叹号。到下面的对话框中。然后在Arguement,参数这个tab中,最下面,添加一个NSZo

2010-03-11 08:57:00 3009

转载 代码编写横屏的UIView

1. 在UIView中,将该view使用到的坐标进行旋转,这样当该view addSubview时,会使用坐标方向来进行:@implementation PoseDetailContentView- (id)initWithFrame:(CGRect)frame {    if (self = [super initWithF

2010-03-08 13:56:00 2519

转载 静态类库(Static Library)详细教程

使用静态类库的好处:    加快编译速度。如果类文件多了,在编译的时候,特别是重新清除完Target之后,会特别慢。如果把某些不需要经常改动,但又很必须的类单独拿出来编译成静态类库,整个项目的编译速度将会大大提高。    方便代码共享。有些代码,不方便开源给别人,但又要提供给别人使用。比如,两个公司之间的合作。制作静态类库:    为方便讲解,更方便与初期代码测试,

2010-03-08 13:33:00 1792 1

转载 How to uninstall Xcode and iPhone SDK

My laptop is Thinkpad X61,with only 160GB harddisk. Although I use 25GB for Mac OS fordeveloping, its still not enough, especially when I need to update theiPhones SDK.Each time when I u

2010-03-08 12:38:00 1776 1

转载 [iPhone] UIView FAQ

1, Transform  Just write following codes to scale (also called zoom in/out, or transform) your view:    float scaleX = xxx, scaleY = xxx;    CGAffineTransform transform = CGAffineTra

2010-03-05 10:13:00 687

转载 字符编码笔记:ASCII,Unicode和UTF-8

今天中午,我突然想搞清楚Unicode和UTF-8之间的关系,于是就开始在网上查资料。 结果,这个问题比我想象的复杂,从午饭后一直看到晚上9点,才算初步搞清楚。下面就是我的笔记,主要用来整理自己的思路。但是,我尽量试图写得通俗易懂,希望能对其他朋友有用。毕竟,

2010-03-03 14:06:00 2890

转载 How to make UITableViewCell have variable height

You have seen variable height UITableViewCell in iPhone applications like Twinkle, App Store. These applications have a UITableView as main part of UI, each cell in the table has a variable height acc

2010-03-01 17:53:00 1183

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除