码迷,mamicode.com
首页 >  
搜索关键字:UIView    ( 2905个结果
触摸事件UITouch的应用
因为UIView或者UIViewController都是继承与UIResponder ,所以都有UITouch这个事件。当用户点击屏幕的时候,会产生触摸事件。   通过UITouch事件,可以监听到开始触摸、触摸移动过程、触摸结束以及触摸打断四个不同阶段的状态,在这些方法中,我们能够获取到很多有用的信息,比如触摸点的坐标、触摸的手指数、触摸的次数等等,下面通过一个小例子来说明一下。   详...
分类:其他好文   时间:2015-03-10 14:02:59    阅读次数:149
IOS之UIKit_Day21
Day21回顾:1 Core Animation 在CA上面是UIKit 在CA的下边是Core Animation2. 针对Core Animation编程 针对CALayer编程,通过UIView的layer属性达到CALayer的对象 通过LAyer属性可以做效果 a.圆角 b.添加子视图 ....
分类:移动开发   时间:2015-03-10 00:09:57    阅读次数:258
iOS 自定义cell的高度
在iOS开发过程中,最重要的几个UIView分别为UITableView、UIScrollView、UICollection.今天由小白哥带大家认识一下UItableVIew...
分类:移动开发   时间:2015-03-09 14:27:55    阅读次数:140
IOS 开发笔记-基础 UI(7)汤姆猫(UIImageView 的序列帧动画、图片加载,方法重构、Bundle 图片素材)
使用UIImageView、UIButton实现一个综合小案例---汤姆猫回忆:UIImageView 来自UIView,UIView 来自UIResponder,UIButton 来自UIControl,UIControl 来自UIView单独看实现,代码实现其实比较简单,但是创意很难得,美工要求...
分类:移动开发   时间:2015-03-08 14:16:00    阅读次数:4780
5 approach to load UIView from Xib
After the past few years I found that the only manageable way for creating/maintaining view (or any UI element in more general) is to instantiate the ...
分类:移动开发   时间:2015-03-07 00:54:17    阅读次数:325
IOS之UIKit_Day19
Day19回顾:1. UIView的内部布局 VC可以对直接子视图布局,但是不能对视图的内部直接布局,所以view必须就有自身 布局的能,通过重写UIView的LayoutSubView方法实现当需要布局的时候,方法执行的顺序a.VC的viewWillLayoutSubViewb.View的layo...
分类:移动开发   时间:2015-03-07 00:54:03    阅读次数:275
Swift小代码
iOS常见控件的创建方法import UIKitclassViewController: UIViewController { var myLabel: UILabel = UILabel() var myView: UIView = UIView() var myButton: UIBut...
分类:编程语言   时间:2015-03-06 19:04:07    阅读次数:174
ios 中的半屏幕底部弹出框
static UIView *modalView;if (modalView) { [modalView removeFromSuperview]; modalView = nil; return; } CGRect screen = [...
分类:移动开发   时间:2015-03-06 18:33:11    阅读次数:311
UIWindow的常见属性以及设置
UIWIndow的常见属性以及设置...
分类:Windows程序   时间:2015-03-05 19:32:10    阅读次数:1803
IOS动画总结
IOS动画总结http://blog.sina.com.cn/s/blog_611b9d9d01015dkm.html(2012-06-01 14:50:32)转载▼标签:杂谈分类:IOS一.基本方式:使用UIView类的UIViewAnimation扩展+ (void)beginAnimation...
分类:移动开发   时间:2015-03-05 00:14:17    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!