I. C#中值类型和引用类型1. 类class 引用类型,结构struct值类型2. 数组是引用类型,即使元素是值类型,int[]是引用类型3. 枚举是值类型enum4. 委托类型delegate是引用类型5. 接口类型interface是引用类型,但可以由值类型实现。II. 值的表达式:表达式“2...
分类:
其他好文 时间:
2014-07-23 22:12:37
阅读次数:
265
`UIView的Category UISnapshotting ````objc@interface UIView (UISnapshotting)- (UIView *)snapshotViewAfterScreenUpdates:(BOOL)afterUpdates;- (UIView *)re...
分类:
移动开发 时间:
2014-07-23 22:09:57
阅读次数:
303
BeyondViewController.h
//
// BeyondViewController.h
// 04_表情排列
//
// Created by beyond on 14-7-22.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import
@interface BeyondViewContr...
分类:
移动开发 时间:
2014-07-23 18:11:26
阅读次数:
318
先看下面一个例子#import #import "AppDelegate.h"@interface Something : NSObject- (void)doWithError:(NSError **)outError;@end@implementation Something- (void)do...
分类:
其他好文 时间:
2014-07-23 16:44:01
阅读次数:
212
1.接口实现及类型转换 1 type Sequence []int 2 3 // Methods required by sort.Interface. 4 func (s Sequence) Len() int { 5 return len(s) 6 } 7 func (s Sequen...
分类:
其他好文 时间:
2014-07-23 16:43:41
阅读次数:
210
我是应用商店的小镜子metric Metric为路由指定所需跃点数的整数值(范围是 1 ~ 9999),它用来在路由表里的多个路由中选择与转发包中的目标地址最为匹配的路由。所选的路由具有最少的跃点数。跃点数能够反映跃点的数量、路径的速度、路径可靠性、路径吞吐量以及管理属性。if Interface指...
分类:
其他好文 时间:
2014-07-23 14:54:46
阅读次数:
244
定义被代理对象的接口和接口实现:1 package com.xl;2 public interface Book {3 4 public void addBooks();5 }View Code 1 package com.xl; 2 3 public class BookImpl...
分类:
其他好文 时间:
2014-07-23 12:47:06
阅读次数:
167
#import @interface DPopoverView : UIView+ (void)showPopoverAtPoint:(CGPoint)point inView:(UIView *)view withContentView:(UIView *)cView;- (void)showPo...
分类:
其他好文 时间:
2014-07-23 12:42:36
阅读次数:
264
BeyondViewController.h
//
// BeyondViewController.h
// 01_calc
//
// Created by beyond on 14-7-20.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import
@interface BeyondViewCon...
分类:
移动开发 时间:
2014-07-22 23:50:27
阅读次数:
349
BeyondViewController.h
//
// BeyondViewController.h
// 02_按钮控制物体形变
//
// Created by beyond on 14-7-21.
// Copyright (c) 2014年 com.beyond. All rights reserved.
//
#import
@interface BeyondViewC...
分类:
移动开发 时间:
2014-07-22 23:49:47
阅读次数:
330