<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[小小程序员]]></title><description><![CDATA[点滴积累]]></description><link>https://blog.csdn.net/xia0615</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; xia0615]]></copyright><item><title><![CDATA[判断字符是否为空]]></title><link>https://blog.csdn.net/xia0615/article/details/9000773</link><guid>https://blog.csdn.net/xia0615/article/details/9000773</guid><author>xia0615</author><pubDate>Fri, 31 May 2013 15:27:51 +0800</pubDate><description><![CDATA[[nickName hasPrefix:@"null"]]]></description><category></category></item><item><title><![CDATA[去处tableview的背景]]></title><link>https://blog.csdn.net/xia0615/article/details/8995437</link><guid>https://blog.csdn.net/xia0615/article/details/8995437</guid><author>xia0615</author><pubDate>Thu, 30 May 2013 16:37:25 +0800</pubDate><description><![CDATA[[mTableView setBackgroundView:[[UIView
alloc] init]];
    [mTableView setBackgroundColor:[UIColor
clearColor]];]]></description><category></category></item><item><title><![CDATA[优化性能]]></title><link>https://blog.csdn.net/xia0615/article/details/8793812</link><guid>https://blog.csdn.net/xia0615/article/details/8793812</guid><author>xia0615</author><pubDate>Fri, 12 Apr 2013 15:44:26 +0800</pubDate><description><![CDATA[1。NSAutoreleasePool负责释放一个代码块中的自动释放对象。一般都是由UIKit来创建的。不过有些情况下需要手动创建NSAutoreleasePool
例如，如果在代码中创建了大量的临时对象，你将注意到内存使用量在增加，直到这些对象被释放。问题是只有当UIKit耗尽了
 autorelease pool，这些对象才会被释放，也就是说当不再需要这些对象之后，这些对象还在内存中占据着]]></description><category></category></item><item><title><![CDATA[儿童产品]]></title><link>https://blog.csdn.net/xia0615/article/details/8573448</link><guid>https://blog.csdn.net/xia0615/article/details/8573448</guid><author>xia0615</author><pubDate>Wed, 06 Feb 2013 10:39:03 +0800</pubDate><description><![CDATA[孩子4到6岁左右，教的是怎么分辨钱币的数额，和简单的加减法。
6岁以后，所谓的“理财”是给她零用钱。要她自己管理。明白储蓄的概念。
大约到初中时，给她挣钱的概念。有些家里的份外事，可以给点钱让小孩做。
高中，孩子就可以自己到外面挣点外快了。
高中后期，教信用卡的概念。教累积利率的概念。
大学是独立理财。有预算，有现金管理，有工作挣钱，有信用卡／贷款借钱。
大学以后才会深入到各种投资。]]></description><category></category></item><item><title><![CDATA[打开mac端 ftp]]></title><link>https://blog.csdn.net/xia0615/article/details/8485765</link><guid>https://blog.csdn.net/xia0615/article/details/8485765</guid><author>xia0615</author><pubDate>Wed, 09 Jan 2013 15:09:20 +0800</pubDate><description><![CDATA[第一种：通过命令行来开启关闭，如下所示：
开启 FTP Server
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
关闭 FTP Server
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist

第二种：通过第三方图]]></description><category></category></item><item><title><![CDATA[DDLog]]></title><link>https://blog.csdn.net/xia0615/article/details/8480381</link><guid>https://blog.csdn.net/xia0615/article/details/8480381</guid><author>xia0615</author><pubDate>Tue, 08 Jan 2013 11:47:00 +0800</pubDate><description><![CDATA[1.http://www.cnblogs.com/xiaoweige/archive/2012/10/08/lumberjack.html
2.http://ikevin.tw/359


注意是否使用arc


1.使用之前要进行初始化

static const
int ddLogLevel = LOG_LEVEL_VERBOSE;

2.使用之前要设置等级]]></description><category></category></item><item><title><![CDATA[Cocos2d 中对图片的各种操作]]></title><link>https://blog.csdn.net/xia0615/article/details/8475951</link><guid>https://blog.csdn.net/xia0615/article/details/8475951</guid><author>xia0615</author><pubDate>Mon, 07 Jan 2013 10:53:50 +0800</pubDate><description><![CDATA[关于精灵的各种操作，总结一下以便以后复习查找。

内容简要：

1、初始化 2、创建无图的精灵 3、设置精灵贴图大小  4、添加入层中

5、对精灵进行缩放  6、对精灵款或高进行缩放  7、旋转精灵

8、设置精灵透明度  9、精灵的镜像反转  10、设置精灵的颜色

11、得到图的宽高   12、按照像素设定图片大小  13、在原有的基础上加xy的坐标

14、设置图片]]></description><category></category></item><item><title><![CDATA[cocos2d中CCCallFunc、CCCallFuncN和CCCallFuncND的区别]]></title><link>https://blog.csdn.net/xia0615/article/details/8464432</link><guid>https://blog.csdn.net/xia0615/article/details/8464432</guid><author>xia0615</author><pubDate>Fri, 04 Jan 2013 14:19:40 +0800</pubDate><description><![CDATA[cocos2d中有3种回调方式：CCCallFunc、CCCallFuncN和CCCallFuncND

其中，他们有什么区别呢？

 

这里我稍微总结下，不对的欢迎讨论和拍砖！

 

看源代码的excute方法，我总结下面3点：

1. CCCallFunc

 




C代码  



-(void) execute  
{]]></description><category></category></item><item><title><![CDATA[判断是否是高清]]></title><link>https://blog.csdn.net/xia0615/article/details/8454304</link><guid>https://blog.csdn.net/xia0615/article/details/8454304</guid><author>xia0615</author><pubDate>Mon, 31 Dec 2012 09:41:44 +0800</pubDate><description><![CDATA[#define isRetina ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640,960),
 [[UIScreen mainScreen] currentMode].size) : NO)]]></description><category></category></item><item><title><![CDATA[cocos2d touch事件]]></title><link>https://blog.csdn.net/xia0615/article/details/8362771</link><guid>https://blog.csdn.net/xia0615/article/details/8362771</guid><author>xia0615</author><pubDate>Fri, 21 Dec 2012 10:26:57 +0800</pubDate><description><![CDATA[ccTouchBegan方法基于用户的touch事件调用上面的方法。注意，这里把touch坐标点从UIView的坐标系转换成了结点坐标系。为了实现这个目的，通过调用CCNode的一个辅助函数，convertTouchToNodeSpace。这个方法做了以下三件事：

计算touch视图（也就是屏幕）的touch点位置（使用locaitonInView方法）转换touch坐标点为OpenGL坐标]]></description><category></category></item><item><title><![CDATA[GDataXML(安装说明)]]></title><link>https://blog.csdn.net/xia0615/article/details/8349126</link><guid>https://blog.csdn.net/xia0615/article/details/8349126</guid><author>xia0615</author><pubDate>Thu, 20 Dec 2012 11:39:34 +0800</pubDate><description><![CDATA[GDataXML

1. 从http://code.google.com/p/gdata-objectivec-client/downloads/list下载“gdata-objective-c client library.”

2. 解压缩文件，找到Source\XMLSupport，并且将其中的GDataXMLNode.h 和 GDataXMLNode.m文件拖到项目中

3.]]></description><category></category></item><item><title><![CDATA[NSArray和NSMutableArray对象的使用]]></title><link>https://blog.csdn.net/xia0615/article/details/8348696</link><guid>https://blog.csdn.net/xia0615/article/details/8348696</guid><author>xia0615</author><pubDate>Thu, 20 Dec 2012 10:27:56 +0800</pubDate><description><![CDATA[NSArray和NSMutableArray对象的使用

/* 初始化方法：
 1.init返回一个空数组
 2.initWithArray从已有数组初始化
 3.initWithContentsOfFile//从plist文件加载
 4.initWithContentsOfUrl//从网络地址上获取
 5.initWithObject用一个对象初始化
 6.initWithObj]]></description><category></category></item><item><title><![CDATA[17个常用代码整理]]></title><link>https://blog.csdn.net/xia0615/article/details/8348493</link><guid>https://blog.csdn.net/xia0615/article/details/8348493</guid><author>xia0615</author><pubDate>Thu, 20 Dec 2012 09:53:09 +0800</pubDate><description><![CDATA[17个常用代码整理
转自：http://www.cocoachina.com/newbie/tutorial/2012/1220/5377.html
1.判断邮箱格式是否正确的代码
//利用正则表达式验证
-(BOOL)isValidateEmail:(NSString *)email
{
NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za]]></description><category></category></item><item><title><![CDATA[cocos2d游戏地图]]></title><link>https://blog.csdn.net/xia0615/article/details/8330534</link><guid>https://blog.csdn.net/xia0615/article/details/8330534</guid><author>xia0615</author><pubDate>Wed, 19 Dec 2012 12:57:13 +0800</pubDate><description><![CDATA[Cocos2d-iPhone 实现地图显示的有主要
2 组文件:    

1) 负责整体地图的显示:CCTMXTiledMap.h,
CCTMXTiledMap.m
2) 负责 xml
文件读取和解析:CCTMXXMLParser.h,CCTMXXMLParser.m 



在实际游戏编程中,我们主要用到以下几个类:
1) CCTMXTiledMap
这是主要的编程接口]]></description><category></category></item><item><title><![CDATA[死锁]]></title><link>https://blog.csdn.net/xia0615/article/details/8314266</link><guid>https://blog.csdn.net/xia0615/article/details/8314266</guid><author>xia0615</author><pubDate>Tue, 18 Dec 2012 14:45:06 +0800</pubDate><description><![CDATA[产生死锁的原因主要是：
（1） 因为系统资源不足。
（2） 进程运行推进的顺序不合适。
（3） 资源分配不当等。


产生死锁的四个必要条件：
（1） 互斥条件：一个资源每次只能被一个进程使用。
（2） 请求与保持条件：一个进程因请求资源而阻塞时，对已获得的资源保持不放。
（3） 不剥夺条件:进程已获得的资源，在末使用完之前，不能强行剥夺。
（4） 循环等待条件:若干进程之间形]]></description><category></category></item><item><title><![CDATA[sip跟xmpp协议]]></title><link>https://blog.csdn.net/xia0615/article/details/8203978</link><guid>https://blog.csdn.net/xia0615/article/details/8203978</guid><author>xia0615</author><pubDate>Tue, 20 Nov 2012 15:29:25 +0800</pubDate><description><![CDATA[SIP(Session Initiation Protocol)是一个应用层的信令控制协议。用于创建、修改和释放一个或多个参与者的会话。这些会话可以是Internet多媒体会议、IP电话或多媒体分发。会话的参与者可以通过组播（multicast）、网状单播（unicast）或两者的混合体进行通信。

SIP 会话使用多达四个主要组件：SIP 用户代理、SIP 注册服务器、SIP 代理服务器和]]></description><category></category></item><item><title><![CDATA[UIScrollView 原理详解]]></title><link>https://blog.csdn.net/xia0615/article/details/8203655</link><guid>https://blog.csdn.net/xia0615/article/details/8203655</guid><author>xia0615</author><pubDate>Tue, 20 Nov 2012 14:31:27 +0800</pubDate><description><![CDATA[转自：http://www.cocoachina.com/iphonedev/sdk/2010/1224/2503.html




scroll view 原理

    在滚动过程当中，其实是在修改原点坐标。当手指触摸后, scroll view会暂时拦截触摸事件,使用一个计时器。假如在计时器到点后没有发生手指移动事件，那么 scroll view 发送 tracking eve]]></description><category></category></item><item><title><![CDATA[对经纬度进行低点转换]]></title><link>https://blog.csdn.net/xia0615/article/details/8187962</link><guid>https://blog.csdn.net/xia0615/article/details/8187962</guid><author>xia0615</author><pubDate>Thu, 15 Nov 2012 17:36:44 +0800</pubDate><description><![CDATA[locationManager = [[CLLocationManager
alloc] init];
    locationManager.delegate =
self;
    locationManager.desiredAccuracy =
kCLLocationAccuracyBest;
    [locationManager
startUpdatingLocatio]]></description><category></category></item><item><title><![CDATA[获取经纬度]]></title><link>https://blog.csdn.net/xia0615/article/details/8187039</link><guid>https://blog.csdn.net/xia0615/article/details/8187039</guid><author>xia0615</author><pubDate>Thu, 15 Nov 2012 15:15:08 +0800</pubDate><description><![CDATA[locationManager = [[CLLocationManager
alloc] init];
    locationManager.delegate =
self;
    locationManager.desiredAccuracy =
kCLLocationAccuracyBest;
    [locationManager
startUpdatingLocatio]]></description><category></category></item><item><title><![CDATA[frame与bounds的区别比较]]></title><link>https://blog.csdn.net/xia0615/article/details/8128772</link><guid>https://blog.csdn.net/xia0615/article/details/8128772</guid><author>xia0615</author><pubDate>Tue, 30 Oct 2012 15:44:05 +0800</pubDate><description><![CDATA[翻译文档上的 bounds是指这个view在它自己坐标系的坐标和大小 而frame指的是这个view在它superview的坐标系的坐标和大小 区别主要在坐标系这一块。  很明显一个是自己为原点的坐标系，一个是以屏幕为原点的坐标系。绝对坐标。。。相对坐标。。。比如屏幕旋转的时候就要以相对来重绘。  frame 如果一个按钮，是在表格里，按钮的frame 的坐标也是相对的，并不是相对屏幕，也就是说是]]></description><category></category></item></channel></rss>