1 class Animal 2 { 3 private String name; 4 Animal(String name) 5 { 6 this.name=name; 7 } 8 public void enjoy() 9 {10...
分类:
编程语言 时间:
2015-11-10 17:48:33
阅读次数:
197
获取当前键盘按键,代码如下:using UnityEngine;using System.Collections;public class GetCurrentKey : MonoBehaviour { KeyCode currentKey; void Start () { ...
分类:
编程语言 时间:
2015-11-10 17:45:40
阅读次数:
283
条件一:全局变量 CGFloat _scrollviewBeginSet; CGFloat _scrollviewDidSet;条件二:代理方法- (void)scrollViewWillBeginDecelerating:(UIScrollView *)scrollView { _scrol...
分类:
其他好文 时间:
2015-11-10 17:43:58
阅读次数:
224
using System;using System.Collections.Generic;using System.Text;public class MyClass{ public static void PrintValues(IEnumerable myCollection) { IEn.....
分类:
其他好文 时间:
2015-11-10 16:10:03
阅读次数:
192
//volley发送post请 2 private void volleypost() { 3 String url = "http://apis.juhe.cn/idcard/index?"; 4 StringRequest request = new St...
分类:
其他好文 时间:
2015-11-10 16:06:10
阅读次数:
161
使用Java模拟客户端进行提交,需要用到apache http client jar,这里用的是4.4版本GET:public void GetURL(){String strResp="";String url="www.baidu.com";int statuscode=0;CloseableH...
分类:
编程语言 时间:
2015-11-10 15:58:51
阅读次数:
236
简单的UITableViewCell特效 飞入飞出之类的 看了一些最近放出来的控件, 有些是关于UITableViewCell显示的特效.也有朋友问我咋做. 就写了个简单的介绍.1. UITableVIew需要实现 - (void)tableView:(UITableView *)tableView...
分类:
其他好文 时间:
2015-11-10 15:50:50
阅读次数:
288
使用gridView1_CellValueChanged 事件private void gridView1_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e) ...
分类:
其他好文 时间:
2015-11-10 13:57:20
阅读次数:
204
private void exitBy2Click() { Timer tExit = null; if (isExit == false) { isExit = true; // 准备退出 ToastUtils.showToast(context, "再按一次退出"); tExit...
分类:
移动开发 时间:
2015-11-10 13:46:07
阅读次数:
148
只需要在Global.asax文件中添加以下代码,则可以在出错后友好的展示错误页,也不需要在很多地方写记录错误日志的代码 protected void Application_Error(object sender, EventArgs e) { if (Htt...
分类:
Web程序 时间:
2015-11-10 12:30:10
阅读次数:
211