
iOS之UI模块
文章平均质量分 71
Jolie_Yang
所贵乎枯淡者,谓其外枯中膏,似淡而实美
展开
-
UIGestureRecognizer学习笔记
12th,September,2016概述UIKit-UIGestureRecognizer–苹果开发文档 UIGestureRecognizer是具体手势识别器的抽象基类。具体的子类有: UITapGestureRecognizer // 点按 UIPinchGestureRecognizer // 捏合,比如图片的缩放 UIRotationGestureRecognizer // 旋转原创 2016-09-12 10:56:32 · 403 阅读 · 0 评论 -
UINavigationController笔记
3rd,March,2017概述UINavigationController继承UIViewController, 是一个特殊的视图控制器,具有层级结构,用于管理一组具有层级结构的视图控制器(通过viewControllers 属性维持这组视图控制器)。UINavigationController维持着视图控制器栈,通过入栈和出栈更改最顶层的视图控制器。viewContoller数组中的第一个视图控原创 2017-03-06 16:46:42 · 739 阅读 · 0 评论 -
iOS--TexiField相关
10th,March,20161. 通过xib界面修改1) 设置layer.borderColor ,问题: 运行的时候颜色并没有变。分析:因为layer的color是CGColor,但你键值加上去的是UIColor,所以设置了没用。解决方案1: 给layer添加一个category,然后添加方法- (void)setBorderColorWit原创 2016-03-10 16:43:50 · 513 阅读 · 0 评论 -
基于UIWebView混合编程
未完待续…… r: 终于接触到混合编程的项目,记录下对混合编程的学习过程与理解简介UIWebView可以加载网页,还可以加载html、pdf、txt等多种格式文件. 混合编程: 指同时使用原生控件和UIWebview展示页面.唐巧在《iOS开发进阶》中说道: 合理的使用该方案,即可以保证页面的流程交互效果,又有Web页面良好的动态更新和多平台复用的优势.应用场景: 1. 页面排版复杂,原创 2016-10-08 23:38:09 · 887 阅读 · 0 评论 -
UIView动画初探
UIView动画属性@property(nonatomic) CGRect frame;// 大小变化@property(nonatomic) CGRect bounds;// 拉伸变化@property(nonatomic) CGPoint center;// 位置修改@property(nonatomic) CGAffineTransform transform;// 旋转@proper原创 2016-10-17 23:55:00 · 756 阅读 · 0 评论 -
iOS&OS X -- Alert 提示框实现
31st,May,2016iOS&OS X – Alert 提示框实现iOS实现UIAlert Important: UIAlertView is deprecated in iOS 8. (Note that UIAlertViewDelegate is also deprecated.) To create and manage alerts in iOS 8 and later, inst原创 2016-05-31 17:47:18 · 1430 阅读 · 0 评论 -
iOS贝塞尔曲线UIBezierPath
[todo] 使用Core Graphics函数去修改path ,涉及属性@property(nonatomic) CGPathRef CGPath;简介贝塞尔(Bezier)曲线,应用于二维图形应用的数学曲线,依据四个位置任意的点坐标绘制出一条光滑曲线。由线段和节点组成,节点是可拖动的节点,线段像可伸缩的皮筋。通过控制起始点,终止点以及两个相互分离的中间点来绘制图形。皮筋效应: 随着点有规律的移动原创 2017-01-10 13:51:53 · 3780 阅读 · 1 评论 -
iOS布局
ScrollView全屏布局方法: 设置UIViewController的automaticallyAdjustsScrollViewInsets. 该属性会依据viewController所处的环境(是否有navigationBar或者tabBar之类的bar), 在UIViewController的view moveToWindow的时候,自动设置scrollView的 contentIns原创 2016-12-12 14:14:23 · 397 阅读 · 0 评论 -
UIDatePicker
概述:应用场景: 1. 时间选择器; 2. 倒计时界面。使用:1.创建UIDatePicker; 2. 配置; 3.设置事件。创建时间选择器UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame: frame];配置datePicker.backgroundColor = [UIColor whiteColor]; //设原创 2016-10-12 17:19:03 · 624 阅读 · 0 评论 -
iOS-Interface Builder小技巧
18th,September,2016TipsEditor->Size to Fit Content ( ⌘=) 1)ImageView: 设置成图片的原始大小;2)label/button: 会设置成跟文字相当的大小。 3) viewOption键 选择一个控件,按options键可以移动鼠标查看其他view与选中的控件的一些距离数据。IBOutletCollection排序Iden原创 2016-09-18 16:05:14 · 629 阅读 · 0 评论 -
UIView学习笔记
10th,May,2016前言UIView职责:(1). 绘制和动画(2). 布局和子视图管理(3). 事件处理初始化方法Method to override- initWithFrame: 从代码加载视图- initWithCoder: 从xib文件加载视图.(先调用initWithCoder,然后发送-awakeFromNib消息给nib中的每个原创 2016-05-10 14:54:00 · 1022 阅读 · 0 评论 -
iOS状态栏颜色设置
13rd,Jan,2016状态栏(UIStatusBar) 状态栏(20px),分两部分前景部分与背景部分.在没有导航栏的情况下,状态栏的背景颜色是透明的. App启动时和运行时全程隐藏状态栏,只需简单将Status bar is initially hidden(UIStatusBarHidden)设置为YES。状态栏可设置两种颜色:默认的黑色(UIStatu原创 2016-01-13 22:26:04 · 1341 阅读 · 0 评论 -
iOS导航栏设置
14th,Jan,2016导航栏颜色与导航栏Titile颜色内容设置未完待续。。。。原创 2016-01-14 14:05:09 · 852 阅读 · 0 评论 -
UIScreen,UIWindow,UIView
12th,May,2016CGPoint {x,y} 坐标信息CGSize {width,height} 宽度和高度CGRect {origin,size} CGPoint和CGSizeUIScreen(屏幕): 父类是NSObject, 一般用来获取屏幕大小 CGRect screenBounds = [[UIScreen mainS原创 2016-05-12 15:25:17 · 573 阅读 · 0 评论 -
UIImageView学习笔记
12th,September,2016ContentModetypedef NS_ENUM(NSInteger, UIViewContentMode) { UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFit, // contents scaled to fit with fixed aspect. re原创 2016-09-12 16:24:50 · 504 阅读 · 0 评论 -
UIViewController学习笔记
UIViewController : UIResponder:NSObject A view controller manages a set of views that make up a portion of your app’s user interface. It is responsible for loading and disposing of those views, for m原创 2016-09-21 17:56:34 · 630 阅读 · 0 评论