12 2012 档案

摘要:- (UIImage *)stretchableImageWithLeftCapWidth:(NSInteger)leftCapWidth topCapHeight:(NSInteger)topCapHeight 这个函数是UIImage的一个实例函数,它的功能是创建一个内容可拉伸,而边角不拉伸的图... 阅读全文
posted @ 2012-12-25 11:02 沙影无痕 阅读(174) 评论(0) 推荐(0)
摘要:Add Row URL types,然后按照上面的设置,URL identifier 自定义,item(todolist部分) 自定义;上面显示item1实际为item0;下面的为接收到外部调用的时候程序启动,响应方法,在safari输入:todolist://com.acme.ToDoList ... 阅读全文
posted @ 2012-12-24 11:35 沙影无痕 阅读(177) 评论(0) 推荐(0)
摘要:假设定义了一个UITableView *myTableView;sectionIndex为row所在的Section,rowIndex及row所在行UITableViewCell *cell = [myTableView cellForRowAtIndexPath:[NSIndexParh ind... 阅读全文
posted @ 2012-12-21 11:06 沙影无痕 阅读(135) 评论(0) 推荐(0)
摘要:-(long long) fileSizeAtPath:(NSString*) filePath{ NSFileManager* manager = [NSFileManager defaultManager]; if ([manager fileExistsAtPath:filePat... 阅读全文
posted @ 2012-12-15 10:57 沙影无痕 阅读(355) 评论(0) 推荐(0)
摘要:常用路径工具函数NSString * NSUserName(); 返回当前用户的登录名NSString * NSFullUserName(); 返回当前用户的完整用户名NSString * NSHomeDirectory(); 返回当前用户主目录的路径NSString * NSHomeDirecto... 阅读全文
posted @ 2012-12-14 11:14 沙影无痕 阅读(267) 评论(0) 推荐(0)
摘要:[request setDidReceiveResponseHeadersSelector:@selector(didReceiveResponseHeaders:)];- (void)didReceiveResponseHeaders:(ASIHTTPRequest *)request{ N... 阅读全文
posted @ 2012-12-13 14:44 沙影无痕 阅读(177) 评论(0) 推荐(0)
摘要:创建一个 Timer+ scheduledTimerWithTimeInterval: invocation: repeats:+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti invocation:(NSInvocat... 阅读全文
posted @ 2012-12-11 10:44 沙影无痕 阅读(144) 评论(0) 推荐(0)
摘要:在开发的过程中,有时候需要用到可以移动的Button,这就需要自己去写一个了;设计思路:通过重写几个touch方法- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { if (!isMove && !isCance... 阅读全文
posted @ 2012-12-10 15:39 沙影无痕 阅读(169) 评论(0) 推荐(0)
摘要:if(bt.tag == 100){//转全屏 bt.tag = 101; [[UIApplication sharedApplication] setStatusBarHidden:YES]; self.view.frame = CGRectMak... 阅读全文
posted @ 2012-12-04 10:46 沙影无痕 阅读(443) 评论(0) 推荐(0)
摘要:UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;获取当前屏幕的方向;[[UIApplication sharedApplication] setStatusBarH... 阅读全文
posted @ 2012-12-04 10:39 沙影无痕 阅读(262) 评论(0) 推荐(0)