1. 从一个视图控制器跳转另一个视图控制器的方式是可以进行设置的 CATransition *animation = [[CATransition alloc]init]; animation.duration = 1; animation.type = @"pageCurl"; //立方体翻滚效果 ...
分类:
其他好文 时间:
2016-04-16 10:42:50
阅读次数:
148
ASPX.NET 页面缓存页面缓存的使用方法非常的简单,只需要在aspx页的顶部加一句声明<%@ OutputCache Duration="60" VaryByParam="none" %>这样整个页面的内容都会被缓存,页面中的ASP.NET代码、数据源在缓存期间都不会被运行,而是直接输出缓存的页 ...
分类:
Web程序 时间:
2016-04-16 00:47:07
阅读次数:
213
div{width:100px;height:100px;background:yellow; transition-property:width; transition-duration:1s; transition-timing-function:linear; // transition-ti ...
分类:
Web程序 时间:
2016-04-11 13:59:07
阅读次数:
114
控制器: //页面静态化(缓存) public function behaviors() { return [ [ 'class' => 'yii\filters\PageCache', 'only' => ['list'], 'duration' => 60, 'variations' => [ ...
分类:
其他好文 时间:
2016-04-07 20:37:07
阅读次数:
121
/** * showAnimationFlash */ + (void)showAnimationFlashWithView:(UIView *)animationView duration:(CGFloat)duration { CAKeyframeAnimation *popAnimation ...
分类:
移动开发 时间:
2016-03-31 09:33:52
阅读次数:
304
UIView 等会效果简单实现,哪一个登录页面的demo来举例子吧. + (void)animateWithDuration:(NSTimeInterval)duration animations:(void (^)(void))animations; UIView的一个类方法,可以看出这个方法里面 ...
分类:
移动开发 时间:
2016-03-30 19:25:04
阅读次数:
324
( function( $ ) { // 找到当前位置 $('a.scroll-link').click(function(e){ e.preventDefault(); $.scrollTo( $(this).attr("href"), { duration: 1000, easing:'swin ...
分类:
Web程序 时间:
2016-03-30 14:57:29
阅读次数:
207
Callback 函数在当前动画 100% 完成之后执行。 jQuery 动画的问题 许多 jQuery 函数涉及动画。这些函数也许会将 speed 或 duration 作为可选参数。 例子:$("p").hide("slow") speed 或 duration 参数可以设置许多不同的值,比如 ...
分类:
Web程序 时间:
2016-03-30 14:43:58
阅读次数:
183
首先在res/raim下新建Tips,指定一些属性。? ?其中 duration=1000 表示1秒转一圈 startOffset表示两圈之间的间隔时间 repeatCount =-1表示不停止的持续转 Pivotx表示绕中心转 在Activity中 private ImageView infoOp ...
分类:
其他好文 时间:
2016-03-27 15:34:07
阅读次数:
218
//计算机器运行时间 long i = 10000000L;clock_t start, finish;double duration;//测量一个事件持续的时间printf( "Time to do %ld empty loops is ", i) ;start = clock();while(
分类:
编程语言 时间:
2016-03-12 13:03:56
阅读次数:
176