1. 效果图2. 用一个View来描述画图板,给画图板添加拖动的手势// 从xib中加载- (void)awakeFromNib{ [self setUpGesture];}// 代码创建- (instancetype)initWithFrame:(CGRect)frame{ if (self = ...
分类:
移动开发 时间:
2015-11-27 14:33:37
阅读次数:
141
public class InputStream2ByteArray { public static void main(String[] args) throws IOException { InputStream in=new FileInputStream("/tmp/re...
分类:
编程语言 时间:
2015-11-27 12:51:13
阅读次数:
134
// Created by 少林 on 15/11/26.// Copyright © 2015年 少林. All rights reserved.//#import "UIPillsViewBackgroundView.h"#define THE_VIEW_COLOR [UIColor whi.....
分类:
移动开发 时间:
2015-11-27 12:36:21
阅读次数:
258
@Override public void onSuccess( Res...
分类:
移动开发 时间:
2015-11-27 10:42:20
阅读次数:
170
public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException { Integer a = 1000, b = 1000; Sys...
分类:
其他好文 时间:
2015-11-27 10:41:41
阅读次数:
120
汉诺塔问题void mve(int n,int x,int y,int z); // 函数声明void mve(int n,int x,int y,int z){ if (n == 1) { // 若x为第一个柱子,若上面只有一个盘子. printf(...
分类:
其他好文 时间:
2015-11-27 09:11:44
阅读次数:
190
一、具体代码Default2.aspx.cspublic partial class Chapter1_Default2 : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { ...
分类:
Web程序 时间:
2015-11-26 22:44:15
阅读次数:
231
使用Trigger事件触发,可以达到虽然触发了,可是不改变任何效果。这个是进入时候触发的: void OnTriggerEnter2D(Collider2D other) { print (other.transform.name); }退出触发: void OnTr...
分类:
其他好文 时间:
2015-11-26 22:40:18
阅读次数:
688
结构图:实现:1 abstract public class Component {2 abstract public void operation();3 }public class ConcreteComponent extends Component { @Override ...
分类:
其他好文 时间:
2015-11-26 21:17:37
阅读次数:
159
可以有多个Main()函数,这样写:namespace ConsoleApp1{class Program{static void Main(string[] args){Console.WriteLine("Program");Console.ReadKey();}}class Program1{...