代码改变世界

UIImageView属性

2016-12-21 10:54 by supper_Ho, 114 阅读, 0 推荐, 收藏, 编辑
摘要:1.Image 设置图片,默认显示 UIImageView *_imageView = [[UIImageViewalloc]init]; _imageView.image = [UIImageimageNamed:@"me.png"]; 2.highlightedImage 设置高亮状态下显示的图 阅读全文

UIImagePickerController

2016-12-21 10:53 by supper_Ho, 275 阅读, 0 推荐, 收藏, 编辑
摘要:1.+(BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType; 检查指定源是否在设备上可用。 //检查照片源是否可用 [UIImagePickerControllerisSourceTypeAvailable 阅读全文

UIDatePicker

2016-12-21 10:52 by supper_Ho, 403 阅读, 0 推荐, 收藏, 编辑
摘要:1. Locale 设置DatePicker的地区,即设置DatePicker显示的语言。 // 1.跟踪所有可用的地区,取出想要的地区 NSLog(@"%@", [NSLocaleavailableLocaleIdentifiers]); // 2.设置日期选择控件的地区 [datePicker 阅读全文

UIControl事件

2016-12-21 10:44 by supper_Ho, 93 阅读, 0 推荐, 收藏, 编辑
摘要:1.UIControlEventTouchDown 单点触摸按下事件:用户点触屏幕,或者又有新手指落下的时候。 2.UIControlEventTouchDownRepeat 多点触摸按下事件,点触计数大于1:用户按下第二、三、或第四根手指的时候。 3.UIControlEventTouchDrag 阅读全文

UIButton属性

2016-12-21 10:37 by supper_Ho, 243 阅读, 0 推荐, 收藏, 编辑
摘要:1.UIButton状态: 2.Uibutton类型: 3.UIButton常用属性 给按钮设置文字时,苹果文档说明,不能使用label对象设置文字的颜色或者阴影颜色,相反必须使用setTitleColor:forState: and setTitleShadowColor:forState:这两个 阅读全文

UIAlertView

2016-12-21 10:30 by supper_Ho, 117 阅读, 0 推荐, 收藏, 编辑
摘要:1.Title 获取或设置UIAlertView上的标题。 2.Message 获取或设置UIAlertView上的消息 UIAlertView *alertView = [[UIAlertViewalloc] initWithTitle:@"Title"message:@"message"dele 阅读全文

UIActivityIndicatorView

2016-12-21 10:22 by supper_Ho, 127 阅读, 0 推荐, 收藏, 编辑
摘要:1. activityIndicatorViewStyle 设置指示器的样式 UIActivityIndicatorViewStyleWhiteLarge UIActivityIndicatorViewStyleWhite(默认样式) UIActivityIndicatorViewStyleGray 阅读全文

NSAttributedString

2016-12-21 10:17 by supper_Ho, 251 阅读, 0 推荐, 收藏, 编辑
摘要:1. 使用这个类,必须先导入CoreText框架。 2. 给UILabel设置attributedText了会导致给UILabel中text,font,textColor,shadowColor,shadowOffset,textAlignment,lineBreakMode这7个属性设置值时无效果 阅读全文

Xcode快捷键

2016-12-21 10:13 by supper_Ho, 129 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

uiimageView连续帧动画

2016-12-21 09:13 by supper_Ho, 645 阅读, 0 推荐, 收藏, 编辑
摘要:// // MJViewController.m // 05-汤姆猫 // // Created by apple on 14-3-24. // Copyright (c) 2014年 itcast. All rights reserved. // #import "MJViewController 阅读全文