IOS动画的实现方式多种多样,这里就只记录一下 beginAnimations:context 。
在你调用 beginAnimations:context:方法来启动一个动画后,动画并不会立即被执行,直 到你调用 UIView 类的 commitAnimations 类方法。你对一个视图对象执行的介于 beginAnimations:context:方法跟 commitAnimatio...
分类:
其他好文 时间:
2014-06-03 04:08:46
阅读次数:
232
1 调度
Windows不是实时操作系统,它是抢占式多线程操作系统。在假设所有优先级相同的情况下,CPU对线程的调度原则是每隔20m就会切换到下一个线程,根据Context中的IP和SP来接着执行上次的东西。Windows永远不会让1个线程去独占一段时间。
2 可调度性
系统只调用可以调度的线程,其实系统的大部分线程都是处于不可调度的状态,要么处于暂停的状...
分类:
编程语言 时间:
2014-06-03 00:16:07
阅读次数:
402
3.1源码结构:
(function( window, undefined ) {
var jQuery = (function() {
// 构建jQuery对象
var jQuery = function( selector, context ) {
return new jQuery.fn.init( selector, c...
分类:
Web程序 时间:
2014-06-02 04:54:11
阅读次数:
292
使用了listener监听器来加载配置,一般在Struts+Spring+Hibernate的项目中都是使用listener监听器的。如下
org.springframework.web.context.ContextLoaderListener
Spring会创建一个WebApplicationContext上下文,称为容器,保存在
ServletConte...
分类:
移动开发 时间:
2014-06-02 02:58:54
阅读次数:
281
版本:1.0日期:2014.5.17 2014.6.1版权:© 2014 kince 转载注明出处 在介绍SwitchButton之前,先来看一下系统Button是如何实现的。源码如下:@RemoteView
public class Button extends TextView {
public Button(Context context) {
this(conte...
分类:
移动开发 时间:
2014-06-01 17:27:10
阅读次数:
684
2014-6-1 0:47:25 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the jav...
分类:
编程语言 时间:
2014-06-01 16:16:55
阅读次数:
484
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www...
分类:
编程语言 时间:
2014-06-01 14:14:30
阅读次数:
320
MainActivity如下:
package come.on;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.V...
分类:
移动开发 时间:
2014-06-01 10:36:36
阅读次数:
345
JQuery对象的生成的逻辑如下
1 selector为任何可转换false的空值
返回空JQuery对象
2 selector为字符串
2.1 selector为html字符串或有id属性的标签
2.2.1 selector为html字符时
转换html字符为DOM元素并放入当前JQuery的数组
当context...
分类:
Web程序 时间:
2014-06-01 10:01:13
阅读次数:
302
1.Picasso简介Picasso是Square公司出品的一个强大的图片下载和缓存图片库。官方网址是:http://square.github.io/picasso/只需要一句代码就可以将图片下载并设置到ImageView上。Picasso.with(context).load("http://i.imgur.com/DvpvklR.png").into(imageView);2.主要特点2.1...
分类:
移动开发 时间:
2014-06-01 08:58:21
阅读次数:
444