码迷,mamicode.com
首页 >  
搜索关键字:UIView    ( 2905个结果
iOS中的触摸事件
1.响应者对象iOS中不是任何对象都能处理事件,只有继承了UIResponder的对象才能接收并处理事件,我们称之为“响应者对象”。UIApplication、UIViewController、UIView都继承自UIResponder,因此他们都是响应者对象,都能够接收并处理事件。2.UIResp...
分类:移动开发   时间:2014-10-20 22:59:51    阅读次数:353
CALayer的简介及使用
CALayer在iOS中,看得见摸得到的东西基本都是UIView,比如button、textFild、label、icon等。UIView之所以能显示到屏幕上,完全是因为其内部的一个图层。创建UIView对象时,UIView内部会自动创建一个图层(即CALayer对象), 通过UIView的laye...
分类:其他好文   时间:2014-10-20 22:56:08    阅读次数:164
查找一个view所在的控制器
navigation同理:-(UIViewController*)viewController{for(UIView*next=[selfsuperview];next;next=next.superview){UIResponder*nextResponder=[nextnextResponder];if([nextResponderisKindOfClass:[UIViewControllerclass]]){return(UIViewController*)nextResponder;}}retur..
分类:其他好文   时间:2014-10-20 02:14:03    阅读次数:153
触摸事件和手势
一、UIView自带有的触摸事件- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [touches anyObject]; if (touch.tapCount == 2)...
分类:其他好文   时间:2014-10-19 16:58:31    阅读次数:210
【iOS开发】---- UIView动画
iOS 动画UIView动画原文:http://www.cocoachina.com/bbs/read.php?tid=1101681.概述UIKit直接将动画集成到UIView类中,实现简单动画的创建过程。UIView类定义了几个内在支持动画的属性声明,当这些属性发生改变时,视图为其变化过程提供内...
分类:移动开发   时间:2014-10-19 01:24:43    阅读次数:185
自定义等待视图
AlertView.h#import @interface AlertView : UIView@property (strong, nonatomic) UILabel *messageLabel;@endAlertView.m#import "AlertView.h"@interface Ale...
分类:其他好文   时间:2014-10-18 01:52:05    阅读次数:184
有关UIView、subview的几个基础知识点-IOS开发 (实例)
环境是xcode4.3首先要弄懂几个基本的概念。一)三个结构体:CGPoint、CGSize、CGRect1. CGPointC代码 /*Points.*/structCGPoint{CGFloatx;CGFloaty;};typedefstructCGPointCGPoint;/* Points....
分类:移动开发   时间:2014-10-17 11:37:12    阅读次数:235
UIView中UIButton设置监听
红色框框是一个uibutton_priceValueLabel是他的父视图, 必须要把button的父视图设置userInteractionEnabled = YES, button的监听才会生效!
分类:其他好文   时间:2014-10-16 20:40:13    阅读次数:198
【iOS开发-51】案例学习:动画新写法、删除子视图、视图顺序、延迟方法、按钮多功能用法及icon图标和启动页设置
实现动画特效,除了[UIView beginAnimations:]这套组合外,推荐使用[UIView animateWithDuration: animations:^{ } completion:^(BOOL finished) { }];如果动画完成后没有需要执行的代码,那么最后面的completion可以去除。...
分类:移动开发   时间:2014-10-16 19:36:53    阅读次数:305
Mac 平台开发学习笔记
1. xib下用代码修改控件frame以改变其位置尺寸等视图界面无法更新新坐标 取消自动布局(auto layout & size classes)2. 平移动画 UIView.animateWithDuration(duration:Double, animation: ()->Void,...
分类:系统相关   时间:2014-10-15 23:27:01    阅读次数:245
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!