这种新材料的主题为: 可以让你设置自己的调色板系统部件 触摸反馈的动画为系统部件 活动过渡动画 您可以根据一个调色板,你控制你的品牌形象定制的材料主题的外观。您可以调整操作栏,并使用主题属性的状态栏,如图3。 该系统部件有一个新的设计和触摸反馈的动画。您可以自定义调色板,触控反馈的动画和活动转变为你的应用程序。 该材料的主题被定义为: @android:款式/ Th...
分类:
移动开发 时间:
2014-10-20 17:21:48
阅读次数:
231
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动画原文: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
环境是xcode4.3首先要弄懂几个基本的概念。一)三个结构体:CGPoint、CGSize、CGRect1. CGPointC代码 /*Points.*/structCGPoint{CGFloatx;CGFloaty;};typedefstructCGPointCGPoint;/* Points....
分类:
移动开发 时间:
2014-10-17 11:37:12
阅读次数:
235
红色框框是一个uibutton_priceValueLabel是他的父视图, 必须要把button的父视图设置userInteractionEnabled = YES, button的监听才会生效!
分类:
其他好文 时间:
2014-10-16 20:40:13
阅读次数:
198
实现动画特效,除了[UIView beginAnimations:]这套组合外,推荐使用[UIView animateWithDuration: animations:^{ } completion:^(BOOL finished) { }];如果动画完成后没有需要执行的代码,那么最后面的completion可以去除。...
分类:
移动开发 时间:
2014-10-16 19:36:53
阅读次数:
305
1. xib下用代码修改控件frame以改变其位置尺寸等视图界面无法更新新坐标 取消自动布局(auto layout & size classes)2. 平移动画 UIView.animateWithDuration(duration:Double, animation: ()->Void,...
分类:
系统相关 时间:
2014-10-15 23:27:01
阅读次数:
245
此套替换方案采用“UIView+动画”方式实现(将UIActionSheet替换为UIView)...
分类:
移动开发 时间:
2014-10-15 20:06:41
阅读次数:
166