在 UIResponder中存在这么一套方法-
(void)motionBegan:(UIEventSubtype)motion
withEvent:(UIEvent*)event__OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0);-
(void)moti...
分类:
移动开发 时间:
2014-05-08 19:14:41
阅读次数:
401
在JDK1.5 之前,我们定义常量都是: publicstaticfianl....
。现在好了,有了枚举,可以把相关的常量分组到一个枚举类型里,而且枚举提供了比常量更多的方法。Java代码 publicenumColor{
RED,GREEN,BLANK,YELLOW }public enum C...
分类:
编程语言 时间:
2014-05-08 19:12:44
阅读次数:
286
public void RandSort(int[] _num) { Random rd = new
Random(); int temp = 0, tempNum = 0; for (int i = 0; i < _...
分类:
其他好文 时间:
2014-05-08 18:55:19
阅读次数:
257
由于项目中还没有更好的多点触控思路,所以需要将多点触控暂时关闭;关闭多点触控的代码只有一行:private void
image_ManipulationStarting(object sender, ManipulationStartingEventArgs
e){e.Mode = Manipul...
分类:
其他好文 时间:
2014-05-08 14:34:30
阅读次数:
251
public class JdbcUtil { private static
ComboPooledDataSource dataSource =new ComboPooledDataSource(); public static
ComboPooledDataSource getDataSourc...
分类:
其他好文 时间:
2014-05-08 14:32:39
阅读次数:
218
-(void) bringSublayerToFront:(CALayer*)layer{[layer
removeFromSuperlayer];[self insertSublayer:layer atIndex:[self.sublayers
count]-1];}-(void) sendSu...
分类:
移动开发 时间:
2014-05-08 14:01:24
阅读次数:
386
c# 获取字符串中的数字 /// /// 获取字符串中的数字 /// /// 字符串 /// 数字
例子1: public static decimal GetNumber(string str) { decimal result = 0; if (str
!= null && str != str...
分类:
其他好文 时间:
2014-05-08 13:32:21
阅读次数:
347
private void button1_Click(object sender, EventArgs
e) { //OpenFileDialog dlg = new OpenFileDialog(); OpenFileDialog fileDialog1 =
new OpenFileDialog....
分类:
其他好文 时间:
2014-05-08 13:27:26
阅读次数:
229
java.lang.String.indexOf(char
ch)方法返回字符ch在指定字符串中第一次出现的下标索引位置如果字符ch在指定的字符串中找不到,则返回-1示例:import
java.lang.*;public class StringDemo { public static void....
分类:
编程语言 时间:
2014-05-08 13:02:04
阅读次数:
423
public class Sort {
static void insertSort(int a[], int n) {
for (int i = 1; i < n; i++) {
if (a[i] = 0 && a[k] > temp) {
...
分类:
其他好文 时间:
2014-05-07 16:15:39
阅读次数:
225