码迷,mamicode.com
首页 >  
搜索关键字:UIView    ( 2905个结果
查看约束优先级的方法
1 for (UIView* subview in self.underView.subviews) { 2 for ( NSLayoutConstraint *constraint in subview.constraints) { 3 NSLog(@"constraint:%@====>%f",
分类:其他好文   时间:2016-01-29 11:58:55    阅读次数:130
触摸事件
1.简介 在UIResponder简介文章中我们介绍了UIResponder可以处理的事件以及他的派生类。 本章中我们将介绍如何去覆盖UIView的touch方法来创建一个划线的小应用。 2.API介绍 1.一根手指或者多根手指触摸屏幕【有多少手指触摸了屏幕则会有多少UITouch对象在集合中】 -
分类:其他好文   时间:2016-01-29 03:15:41    阅读次数:262
UISegmentControl,UISwich,UIPageControl
1 #import "ViewController.h" 2 3 @interface ViewController () 4 @property (strong,nonatomic) UIView *red; 5 @property (strong,nonatomic) UIView *blue;
分类:其他好文   时间:2016-01-29 00:21:03    阅读次数:317
iOS-UI分析利器--Reveal安装破解以及简单使用
前言:在 iOS 开发中,我们有时很希望有一款类似 Web 开发中的 UI Debug 工具(例如:Firebug),让我们能够实时查看 UI 的结构,还可以实时更改某个 UIView 的位置和大小的相关属性值查看效果。这里我们发现原来真有这么一款强大的工具存在,他就是 Reveal。(虽然现在的
分类:移动开发   时间:2016-01-28 23:52:44    阅读次数:347
用POP动画引擎实现弹簧动画(POPSpringAnimation)
效果图: #import "ViewController.h" #import <POP.h> @interface ViewController () @property (nonatomic, weak) UIView *testView; @end @implementation ViewCo
分类:编程语言   时间:2016-01-28 21:00:09    阅读次数:277
【iOS效果集】实现QQ消除小红点(一键退朝)效果
QQ上黏黏的小红点很好玩有木有,于是自己也想实现一番,看到iOS实现的人比较少,Android的比较多,于是这个就用iOS来实现哈~ 效果图: 调试图: 其实从实现来讲,我是先实现第二张图的效果的。 实现思路: 1.了解原理,以及如何绘制“黏黏”形状(即绘制两圆加两条贝塞尔曲线) 2.新建UIView(AZMetaBallCanvas),作为单独画布用来绘制“黏黏”形状,...
分类:移动开发   时间:2016-01-28 17:27:15    阅读次数:604
简单的iOS抽屉效果
#define screenW [UIScreen mainScreen].bounds.size.width #import "ViewController.h" @interface ViewController () @property (nonatomic,strong)UIView * r
分类:移动开发   时间:2016-01-28 17:22:52    阅读次数:151
iOS UIView头文件部分翻译
/** * 通过一个frame来初始化一个UI控件 */ - (id)initWithFrame:(CGRect)frame; // YES:能够跟用户进行交互 @property(nonatomic,getter=isUserInteractionEnabled) BOOL userInterac
分类:移动开发   时间:2016-01-28 16:48:13    阅读次数:230
MBProgressHUD
1.+ (MB_INSTANCETYPE)showHUDAddedTo:(UIView *)view animated:(BOOL)animated; 创建一个新的HUD,并把它添加并显示到提供的视图上.与之相对应的方法是 hideHUDForView:animated:. @note 这个方法会设
分类:其他好文   时间:2016-01-28 15:19:57    阅读次数:151
ios 取出subviews中指定subview
for(UIView *view in subviews){ if(view.tag == 998) { //根据tag判断 }if([view isKindOfClass:[UIImageView class]]) { //根据类型判断 }}
分类:移动开发   时间:2016-01-28 14:02:24    阅读次数:177
2905条   上一页 1 ... 97 98 99 100 101 ... 291 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!