码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
iOS开发核心动画之画图板
1. 效果图2. 用一个View来描述画图板,给画图板添加拖动的手势// 从xib中加载- (void)awakeFromNib{ [self setUpGesture];}// 代码创建- (instancetype)initWithFrame:(CGRect)frame{ if (self = ...
分类:移动开发   时间:2015-11-27 14:33:37    阅读次数:141
java将InputStream转换成字节数组
public class InputStream2ByteArray { public static void main(String[] args) throws IOException { InputStream in=new FileInputStream("/tmp/re...
分类:编程语言   时间:2015-11-27 12:51:13    阅读次数:134
iOS 学习笔记——0010(- (void)drawRect:(CGRect)rect)
// 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
android项目下载完成跳到系统下载页面
@Override public void onSuccess( Res...
分类:移动开发   时间:2015-11-27 10:42:20    阅读次数:170
Integer大小比较问题
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
在ASP.NET里实现计算器代码的封装
一、具体代码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
U3D Trigger事件触发
使用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
c# 可以有多个Main()函数
可以有多个Main()函数,这样写:namespace ConsoleApp1{class Program{static void Main(string[] args){Console.WriteLine("Program");Console.ReadKey();}}class Program1{...
分类:Windows程序   时间:2015-11-26 18:56:41    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!