Image组件类似于iOS中UIImage控件,该组件可以通过多种方式加载图片资源。 使用方式,加载方式有如下几种: ...
分类:
其他好文 时间:
2016-10-05 12:42:35
阅读次数:
121
#import <UIKit/UIKit.h> @interface PJXPageView : UIView /* 圆点颜色*/ @property(strong,nonatomic)UIColor *PJX_currentColor; /*没选中的圆点颜色*/ @property(strong, ...
分类:
其他好文 时间:
2016-09-29 21:03:18
阅读次数:
177
[button setBackgroundImage:[[UIImage imageNamed:@"buttonline"] resizableImageWithCapInsets:UIEdgeInsetsMake(10, 10, 10, 10) resizingMode:UIImageResizi ...
分类:
其他好文 时间:
2016-09-28 19:10:21
阅读次数:
104
方法一:支持所有ios系统版本: - (void)setupBlurView { UIImageView *darkView = [[UIImageView alloc] init]; darkView.frame = self.view.bounds; UIImage *image = [UIIm ...
分类:
移动开发 时间:
2016-09-28 19:02:48
阅读次数:
166
(如果需要的不是使用的属性值如换行形式,可以把对应的属性在程序中书写然后按"command"+鼠标左键点击就可以查看所有属性值) 一label基本设置 self.view.backgroundColor = [UIColor redColor]; //创建第一个标签控件 UILabel *label ...
分类:
移动开发 时间:
2016-09-28 12:26:19
阅读次数:
276
iPhone拍出来的照片一般大小在1-10M,我们在上传照片时,不可能上传如此大的图片到服务器,一般我们会对照片进行压缩。 常用的做法是,使用这个函数对图片压缩 UIImageJPEGRepresentation(UIImage * __nonnull image, CGFloat compress ...
分类:
移动开发 时间:
2016-09-27 19:35:37
阅读次数:
464
按钮在普通状态和高亮状态颜色的设置 [_button1 setTitleColor:[UIColor yellowColor] forState:UIControlStateHighlighted]; //在按钮被按下去的,按钮的整个会变成黄色 [_button1 setTitleColor:[UI ...
分类:
移动开发 时间:
2016-09-27 17:55:08
阅读次数:
125
bgView.backgroundColor = [UIColor colorWithWhite:0.f alpha:0.5]; 3 在xib或者storyBoard里面对背景进行设置 半透明背景xib设置.png 半透明背景xib设置.png 通过对背景颜色设置图中的Opacity滑块调整透明度, ...
分类:
移动开发 时间:
2016-09-27 16:25:53
阅读次数:
200
一.去重: 1>颜色: UIColor.whiteColor() 被改为 UIColor.white() 2>数组取值: list.objectAtIndex(i) 被改为 list.object(at: i) 3>present: presentViewController(controller, ...
分类:
编程语言 时间:
2016-09-27 11:46:33
阅读次数:
249
_tableView.sectionIndexBackgroundColor = [UIColor clearColor]; _tableView.sectionIndexColor = kRedColor; ...
分类:
其他好文 时间:
2016-09-26 17:58:15
阅读次数:
108