- 博客(10)
- 资源 (6)
- 收藏
- 关注
转载 TextField详解
//初始化textfield并设置位置及大小 UITextField *text = [[UITextField alloc]initWithFrame:CGRectMake(20, 20, 130, 30)]; //设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect;
2013-11-06 17:48:47
483
转载 ios读写文件 数据持久化
-(BOOL) writeApplicationData:(NSString *)data writeFileName:(NSString *)fileName{ NSArray *paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES); NS
2013-09-06 14:38:21
744
转载 ios 如何获得系统时间和日期
//获得系统时间 NSDate * senddate=[NSDate date]; NSDateFormatter *dateformatter=[[NSDateFormatter alloc] init]; [dateformatter setDateFormat:@"HH:mm"]; NSString * locationString=[dateformatter
2013-09-04 18:17:52
502
转载 ios NSTimeInterval获取时间间隔
ios NSTimeInterval获取时间间隔 2012-12-14 15:11:43| 分类: iphone开发--obje|字号 订阅 想在程序开始或者进入某个界面,到结束程序或退出某个界面,获取到这个持续时间.获取到这个时间还需要转化一个取得时分秒.date1代表开始时间,在开始计时的地方调用, [self ge
2013-09-04 18:15:32
599
转载 错误:dyld: Library not loaded
dyld: Library not loaded: @rpath/SenTestingKit.framework/Versions/A/SenTestingKit Referenced from: /Users/⋯⋯/Application Support/iPhone Simulator/5.0/Applications/F179924C-0EB7-4CCA-88D6-3BA1F68F
2013-08-30 10:06:22
782
原创 scrollView的使用
一、创建 1.CGRect screenFrame = [[UIScreenmainScreen]bounds]; CGRect scrollViewFrame =CGRectMake(0.0f,0.0f, screenFrame.size.width, screenFrame.size.height - [self.navigationControl
2013-07-26 13:26:51
640
转载 关于UIView的autoresizingMask属性的研究
UIView中有个属性是autoresizingMask,该属性是用来控制控件的自适应。 UIViewAutoresizingNone = 0,UIViewAutoresizingFlexibleLeftMargin = 1 UIViewAutoresizingFlexibleWidth = 1 UIViewAutoresizi
2013-07-26 12:46:35
401
转载 contentmode备忘
3、contentMode属性:这个属性是用来设置图片的显示方式,如居中、居右,是否缩放等,有以下几个常量可供设定:UIViewContentModeScaleToFill UIViewContentModeScaleAspectFit UIViewContentModeScaleAspectFill UIViewContentModeRedraw UIViewContentModeC
2013-07-26 12:43:32
451
转载 Gesture Recognizers与触摸事件分发
一.Gesture RecognizersGesture Recognizers是在iOS3.2引入的,可以用来识别手势、简化定制视图事件处理的对象。Gesture Recognizers的基类为UIGestureRecognizer,这一个抽象基类,定义了实现底层手势识别行为的编程接口。在UIKit框架中提供了6个具体的手势识别类,用来识别常见的手势。这6个手势识别器类为:U
2013-07-26 12:42:14
381
转载 给控件添加单击事件--UITapGestureRecognizer
在Iphone开发中,像UIimageView是不支持点击的,但往往我们却有很多能在Image上点击的需求,比如一个自定义的TableViewCell中放入三个UIimageView,在这里命名为imageleft,imagemiddle,imggeright,当tableView加载后,单击tableView中某一行中的image,我便进入该图片的详细页面。当然,现在的最新版支持手势控件
2013-07-26 12:39:25
618
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅