//该方法是检查字典中是否有nil 的,有nil就转行成""- (NSDictionary *)checkDict:(NSDictionary *)sender{ NSMutableDictionary * dict_mutable = [[NSMutableDictionary alloc] i... Read More
- (void)didclickBtn_edit:(UIButton *)sender event:(UIEvent *)event{ UITouch *touch = [[event allTouches] anyObject]; CGPoint currentTouchPosition = ... Read More
本文从网络上摘抄,怕那个博客关闭等原因,故复制过来.忘见谅.php这么流行,不能不研究一下。首先得找到好用的工具,见网上大神们都推荐神器phpStorm,那我也追追风,下载了一个phpStorm 7.1。平时工作都是在mac系统,所以这儿只介绍mac系统神器的配置。安装我就不用多说了嘛。安装成功后,... Read More
#import - (IBAction)authenticateButtonTapped:(id)sender { LAContext *context = [[LAContext alloc] init]; context.localizedFallbackTitle = @"输入密码"; ... Read More
- (UIImageView *)rotate360DegreeWithImageView:(UIImageView *)imageView{ CABasicAnimation *animation = [ CABasicAnimation animationWithKeyPath: @"tran... Read More
一:情景:在mac下使用git;xcode4.6的环境时,需要安装command line tools ,但是在装了xcode5之后,就不需要安装command line tools了,默认已经集成了;但是我先装了,xcode4.6后来又安装了xcode5也就是,我mac上安装了两个版本的xocde... Read More
本文章参照李明杰老师的视频.使用block 首先要会声明和实例化blockblock 的声明:block 分为 有返回值有参数,没返回值有参数,有返回值没参数,没返回值没参数 几种情况有返回值 有参数的 int (^argReturnBlock)(int,int);其他几种分别是 int (^Ret... Read More
avaudio = [[AVAudioPlayer alloc] initWithData:data error:&error]; // avaudio = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL URLWithString:cell... Read More
http://blog.csdn.net/andypan1314/article/details/39207191 Read More
插入排序,就是对一个已经排序好 的数组中插入元素,比如{2,3,1,4,5},这5个元素组成的数组,我们现在要对他们进行排序,首先,我们把{2}看成已经排序好的数组,然后,把3 这个元素插入到已经排序好的{2} 的数组中,于是就会有{2,3},然后,再把1插入到{2,3}已经排序好的数组中,这个时候... Read More