IOS开发UI篇—手势识别器(拖拽+旋转+缩放)一、拖拽示例代码: 1 // 2 // YYViewController.m 3 // 06-拖拽事件 4 // 5 // Created by apple on 14-6-19. 6 // Copyright (c) 2014年 itcase...
分类:
移动开发 时间:
2014-06-28 15:36:33
阅读次数:
392
简单思路:实例一个UIScrollView,在scrollView上添加两个UIView, 为scrollView添加观察者,观察scrollView的contentOffset属性.当偏移量改变时,改变UIView视图的坐标.示例代码:@interface RootViewController (...
分类:
其他好文 时间:
2014-06-24 13:35:15
阅读次数:
297
三.虚析构#include using namespace std;class Base{public: virtual ~Base(){ cout<<"Base destructor\n"; }};class Derived:public Base{public: Derived(){...
分类:
其他好文 时间:
2014-06-21 08:53:46
阅读次数:
182
Fastjson,是阿里巴巴提供的一个Java语言编写的高性能功能完善的JSON库。其开源的下载网址为:https://github.com/AlibabaTech/fastjson。示例代码如下:[java]view plaincopypackagetest;importjava.util.Arr...
分类:
Web程序 时间:
2014-06-20 20:55:25
阅读次数:
199
这是一个Oracle的列转行函数:LISTAGG()先看示例代码:with temp as( select 'China' nation ,'Guangzhou' city from dual union all select 'China' nation ,'Shanghai' city fr.....
分类:
数据库 时间:
2014-06-20 19:13:41
阅读次数:
224
项目中引入Autofac的目的是为了实现控制反转,即IoC,Inversion of Control。控制反转可以有效的降低类之间的相互依赖关系,增加架构的弹性,降低软件复杂度。 示例代码: IProvinceRepository.csusing System;using System.Co...
分类:
Web程序 时间:
2014-06-18 13:07:58
阅读次数:
178
1.在Action中定义,context用于传递搜索条件和分组条件,在搜索视图中默认显示: 示例代码: Leaves Summary hr.holidays form tree,form {'search_default_group_type': 1, ...
分类:
其他好文 时间:
2014-06-18 10:22:52
阅读次数:
333
如何获得控制台应用程序的路径
(1) 使用反射获得执行程序集路径
(2) 传递IO.Path.GetDirectoryName
示例代码:
static void GetAppPath()
{
string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
Console.Wri...
分类:
其他好文 时间:
2014-06-18 06:16:29
阅读次数:
212