10 2013 档案

摘要://// main.m// SortDemo//// Created by PSH_Chen_Tao on 10/28/13.// Copyright (c) 2013 wolfman. All rights reserved.//#import void insertSort(int arr[],int n);void insertSort1(int arr[],int n);void selectSort(int arr[],int n);void quickSort(int arr[],int start ,int n);void shellSort(int arr[] , int n) 阅读全文
posted @ 2013-10-31 10:18 Forty_two 阅读(163) 评论(0) 推荐(0)
摘要://// main.c// SearchBin//// Created by PSH_Chen_Tao on 10/28/13.// Copyright (c) 2013 wolfman. All rights reserved.//#include int search_bin(int arr[],int key ,int n);int search_bin1(int arr[],int key ,int n);void search_bin2(int arr[],int key,int n,int p[2]);void search_bin3(int arr[],int key,int n 阅读全文
posted @ 2013-10-31 10:17 Forty_two 阅读(154) 评论(0) 推荐(0)
摘要:对于NSString肯定会经常用到,谈谈最近在项目中遇到的一个奇特的现象。如下:我们知道文件系统的命名都是用的字符串,比如你给文件取名“a.pdf”,然后保存文件后,那个文件的名字就真的是 "a.pdf"吗?假如有一个文件夹folderName,他里面包含一个文件fileName.........然后我们得到一个包含许多文件名的数组 NSFileManager* fileManager = [NSFileManagerdefaultManager]; NSError* error; NSArray* fileList = [fileManager contentsOfDir 阅读全文
posted @ 2013-10-16 19:00 Forty_two 阅读(1309) 评论(0) 推荐(0)
摘要:昨天项目基本没啥事了,晚上早早的就回家了,躺在床上无聊地玩着手机(Android的),在清理系统垃圾时被一个“360手机助手”给吸引了,其实我是被它的那个抽屉效果给吸引了,此时你也许会觉得我out了 ,一个抽屉效果有啥好吸引人的。以前在项目中我也用到过抽屉,也看过大量的抽屉效果,大部分时间时只有一个view可以滑动的,下面那个view是不动的,就像是拉出或推出一个view的效果差不多,但看到这个 360手机助手的抽屉效果时,我觉得原来的那些真没这个好看。在这个程序中,当你左右拖动那个view A时,另外一个view B也会相应的滑动,但滑动的幅度没有你拖动的那个view A大,不知道我表达清楚 阅读全文
posted @ 2013-10-12 15:33 Forty_two 阅读(1278) 评论(0) 推荐(0)
摘要:在项目中有时候会需要自己定义拍照画面(也就是自定义照相机),此时当我们按下拍照键时是不是希望有个想iOS系统照相机那样的动画。其实apple已经准备好了这样的动画,只要我们加入进去就行了, CATransition *shutterAnimation = [CATransition animation]; shutterAnimation.delegate = self; shutterAnimation.duration = 1.0f; shutterAnimation.timingFunction = [CAMediaTimingFunctionfunctionWithName:kC... 阅读全文
posted @ 2013-10-08 17:55 Forty_two 阅读(712) 评论(0) 推荐(0)