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

浙公网安备 33010602011771号