自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(22)
  • 收藏
  • 关注

转载 UIButton如何正确调整imageView及titleLabel的位置

一些开发者知道通过imageEdgeInsets及titleEdgeInsets 可以调整imageView及titleLabel的位置,但不知道如何正确计算,基本上都是通过多次调整相应的值达到期望的目标(次数过多可能会失去信 心),究其原因就是不能正确理解imageEdgeInsets及titleEdgeInsets.下...

2015-08-15 18:04:00 115

转载 常用颜色RGB、灰度值

128/0/0 深红255/0/0红255/0/255粉红255/153/204玫瑰红153/51/0褐色255/102/0桔黄255/153/0浅桔...

2015-07-08 15:36:00 823

转载 简述UIPikerView的属性和用法

1. numberOfComponents:返回UIPickerView当前的列数NSInteger num = _pickerView.numberOfComponents;NSLog( @"%d", num);2. - (NSInteger)numberOfRowsInComponent:(NSInteger)component; 返回component列中有多少行。...

2015-07-08 15:35:00 88

转载 简述UIImagePickerController的属性和用法

1.+(BOOL)isSourceTypeAvailable:(UIImagePickerControllerSourceType)sourceType; // 检查指定源是否在设备上可用。[UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibra...

2015-07-08 15:34:00 88

转载 简述UIDatePicker的用法

1.Locale设置DatePicker的地区,即设置DatePicker显示的语言。1.跟踪所有可用的地区,取出想要的地区NSLog(@"%@", [NSLocale availableLocaleIdentifiers]);2. 设置日期选择控件的地区[datePicker setLocale:[[NSLocalealloc]initWithLocale...

2015-07-08 15:33:00 72

转载 iOS线程开发小结

在iOS开发线程操作时,一般方法名决定是否开启新线程(async,sync),队列类型(全局队列,串行队列)决定开启多少条线程1.快速线程调用*开启后台线程执行任务[self performSelectorInBackground:@selector(test) withObject:nil];*回到主线程执行任务[self performSel...

2015-07-08 15:32:00 65

转载 简述文本属性Attributes的用法

文本属性Attributes1.NSKernAttributeName: @10 调整字句 kerning 字句调整2.NSFontAttributeName : [UIFont systemFontOfSize:_fontSize] 设置字体3.NSForegroundColorAttributeName :[UIColor redColor] 设置文字颜色4.NS...

2015-07-08 15:31:00 232

转载 简述UIScrollView的属性和用法

1. contentOffset默认CGPointZero,用来设置scrollView的滚动偏移量。 // 设置scrollView的滚动偏移量 scrollView.contentOffset = CGPointMake(0, 200);2. contentSize默认CGSizeZero,用来设置scrollView的滚动范围。 /...

2015-07-08 15:30:00 128

转载 简述UITableView的属性和用法

UITableView内置了两种样式:UITableViewStylePlain,UITableViewStyleGrouped<UITableViewDataSource,UITableViewDelegate>里的方法:tableView处理步骤1.有多少组- (NSInteger)numberOfSectionsInTableView:(UITable...

2015-07-08 15:29:00 97

转载 简述UIPageControl的属性和用法

1. numberOfPages // 设置有多少页 默认为0 [pageControl setNumberOfPages:kImageCount];2. currentPage // 设置当前页[pageControl setCurrentPage:0];3. pageIndicatorTintColor // 设置页码指示器颜色[page...

2015-07-08 15:25:00 72

转载 简述UISegment的属性和用法

1.segmentedControlStyle设置segment的显示样式。typedef NS_ENUM(NSInteger, UISegmentedControlStyle) {UISegmentedControlStylePlain, // large plain 系统默认平板样式segmentedControl.segmentedControlStyle ...

2015-07-08 15:24:00 304

转载 简述UIView的属性和用法

1.alpha设置视图的透明度.默认为1. // 完全透明 view.alpha = 0; // 不透明 view.alpha = 1;2.clipsToBounds// 默认是NO,当设置为yes时,超出当前视图的尺寸的内容和子视图不会显示。view.clipsToBounds = YES;3.hidden// 默认是...

2015-07-08 15:23:00 85

转载 简述UIControl事件的用法

1.UIControlEventTouchDown单点触摸按下事件:用户点触屏幕,或者又有新手指落下的时候。2.UIControlEventTouchDownRepeat多点触摸按下事件,点触计数大于1:用户按下第二、三、或第四根手指的时候。3.UIControlEventTouchDragInside当一次触摸在控件窗口内拖动时。4.UIControlEvent...

2015-07-08 15:22:00 144

转载 简述UIAlertView的属性和用法

1.Title获取或设置UIAlertView上的标题。2.Message获取或设置UIAlertView上的消息 UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Title" message:@"message" delegate:self cancelButtonTitle:@"取消" ...

2015-07-08 15:21:00 91

转载 简述UIActivityIndicatorView的属性和用法

1. activityIndicatorViewStyle设置指示器的样式UIActivityIndicatorViewStyleWhiteLargeUIActivityIndicatorViewStyleWhite (默认样式)UIActivityIndicatorViewStyleGray2.hidesWhenStopped当停止动画的时候...

2015-07-08 15:20:00 66

转载 简述UITextField的属性和用法

0. enablesReturnKeyAutomatically默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。1.borderStyle设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderStyleRoundedRect;typedef enum {  ...

2015-07-08 15:19:00 178

转载 简述UISwitch的属性和用法

UISwitch属性1. onTintColor 处于on时switch的颜色switchImage.onTintColor=[UIColorgrayColor];2.tintColor处于off时switch的颜色switchImage.tintColor=[UIColorgreenColor];3.onImage...

2015-07-08 15:18:00 269

转载 简述UISlide的属性和用法

1. minimumValue: 当值可以改变时,滑块可以滑动到最小位置的值,默认为0.0_slider.minimumValue = 10.0;2. maximumValue: 当值可以改变时,滑块可以滑动到最大位置的值,默认为1.0_slider.maximumValue = 100.0;3. continuous: 如果设置YES...

2015-07-08 15:17:00 112

转载 简述UIButton的属性和用法

UIButton属性1.UIButton状态:UIControlStateNormal // 正常状态UIControlStateHighlighted // 高亮状态UIControlStateDisabled // 禁用状态UIControlStateSelected // 选中状态...

2015-07-08 15:15:00 107

转载 loadView、viewDidLoad及viewDidUnload的关系

标题中所说的3个方法,都是UIViewController的方法,跟UIViewController的view属性的生命周期息息相关。接下来我会一一阐述它们的作用以及它们之间的联系。一、loadView1.什么时候被调用?每次访问UIViewController的view(比如controller.view、self.view)而且view为nil,loadView方法就...

2015-07-08 15:14:00 58

转载 简述UILabel的属性和用法

1.text:设置标签显示文本。label.text = @"我是Label";2.attributedText:设置标签属性文本。NSString*text=@"first";NSMutableAttributedString*textLabelStr=[[NSMutableAttributedStringalloc]initWithString...

2015-07-08 15:13:00 68

转载 iOS开发API常用英语名词

0. indicating 决定1.in order to 以便2.rectangle bounds 矩形尺寸3.applied 应用4.entirety 全部5.technique 方法6.truncating 截短7.wrapping 换行8.string 字符串9.familiar style 简体10.The styled text 主题...

2015-07-08 15:11:00 78

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除