摘要:
1 导入QuartzCote框架#import 2. 设置边框 input_title.layer.borderColor = [[UIColor blackColor] colorWithAlphaComponent:.2].CGColor; input_title.l... 阅读全文
摘要:
阅读全文
摘要:
创建当前时间NSDate *date = [NSDate date];从现在开始的24小时 NSTimeIntervala_day =24*60*60; NSDate*tomorrow = [NSDatedateWithTimeIntervalSinceNow:a_day];根据已有日期创建... 阅读全文
摘要:
Quicklook 支持的文件:iWork文档微软Office97以上版本的文档RTF文档PDF文件图片文件文本文件和CSV文件首先需要加入framework:然后加入头文件:#import 在需要进入快速查看的地方初始化(这里只显示一个文件):local_file_URL = [NSURL fil... 阅读全文
摘要:
在进入全屏模式的时候,顶部的statusbar 进行了隐藏,但是顶部任然有一个20像素的横条;测试过程中仅仅在ios 4中会出现这种问题,在网上搜索到的很多答案都是采用, xx-Info.plist 里面加入然后在需要加载statusbar的地方加入[[UIApplication sharedApp... 阅读全文
摘要:
self.dataArray = [[[NSMutableArray alloc]init] autorelease]; NSArray *array = [NSArray arrayWithObjects:[NSArray arrayWithObjects:@"Beijing",@"... 阅读全文
摘要:
一、ListView类1、常用的基本属性: (1)FullRowSelect:设置是否行选择模式。(默认为false) 提示:只有在Details视图该属性才有意义。 (2)GridLines:设置行和列之间是否显示网格线。(默认为false)提示:只有在Details视图该属性才有意义。 (3)... 阅读全文
摘要:
UIToolbar *toolBar = [[[UIToolbar alloc]initWithFrame:CGRectMake(0, self.scrollView.frame.size.height, self.view.frame.size.width, 30)] autoreleas... 阅读全文
摘要:
点击一个home button的时候出现以上发亮效果;具体设置:UIButton *homeButton = [[UIButton alloc] initWithFrame:frame];[homeButton setImage:[UIImage imageN... 阅读全文
摘要:
关于UIButton,既可以采用setBackgroundImage 来设置底部图片,同时也可以采用 setImage方法;两者还是有一定区别的;首先setBackgroundImage,image会随着button的大小而改变,图片自动会拉伸来适应button的大小,这个时候任然可以设置butto... 阅读全文