集合接口import java.util.Iterator;public interface Collection extends Iterable{ int size (); boolean isEmpty(); void clear (); boolean contains(AnyType x....
分类:
其他好文 时间:
2015-04-23 12:28:45
阅读次数:
121
适配器模式英文原文是:Convert the interface of a class into anther interface clients expect. Adapter lets classes work together that couldni`t otherwise because of incompatible interface. 意思是将一个类的接口变化成客户端所期待的另一种...
分类:
其他好文 时间:
2015-04-23 11:07:25
阅读次数:
142
问题:
Google Chrome的最新v42版本终于如其官方blog所说的,发布的同时,将NPAPI(Netscape Plugin Application Programming Interface)的支持设置为默认关闭。虽然,Google早就宣称要在其主流的浏览器中放弃对NPAPI的支持,从前说在2014年底,后来推迟到了了2015年的9月,不过,似乎从来没有被业界像现在一样的重视,因为很...
OC中的get和set实质和C#/java中的一样只是表现形式不同而已如下:1 @interface Car : NSObject2 {3 int wheels;4 }5 6 -(void) run;7 -(void) setWheels:(int)newWheels;8 -(int) wh...
分类:
移动开发 时间:
2015-04-22 22:00:46
阅读次数:
156
#import "ViewController.h"
#import "QSSDateHelper.h"
@interface ViewController ()
@property (nonatomic,strong) UIButton *btn;
@property (nonatomic,assign) BOOL isTouch;
@property (nonatomic,assig...
分类:
移动开发 时间:
2015-04-22 18:15:23
阅读次数:
196
先看看组合模式的定义吧:“将对象组合成树形结构以表示‘部分-整体’的层次结构。组合模式使得用户对单个对象和组合对象的使用具有一致性。”
/**
* 抽象组件
*/
public interface Component {
void operation();
}
/**
* 叶子组件
*/
interface Leaf extends Component{
}
/**
* 容器...
分类:
编程语言 时间:
2015-04-22 18:09:40
阅读次数:
140
这是一个仿照网易客户端侧栏效果(demo),用最简单的方法实现,以下只是一部分代码:有兴趣的同学可以到gitHub下载,下载地址:demo
#import "ViewController.h"
#import "BSYItem.h"
#import "BSYView.h"
@interface ViewController ()
@end
@implementation...
分类:
移动开发 时间:
2015-04-22 15:17:02
阅读次数:
189
分享《关于我》分享[中文纪录片]互联网时代 http://pan.baidu.com/s/1qWkJfcS分享《HTML开发MacOSApp教程》 http://pan.baidu.com/s/1jG1Q58MRoboVM 1.1 发布,你终于可以在 Interface Buil...
分类:
编程语言 时间:
2015-04-22 13:51:56
阅读次数:
176
#import @interface ViewController : UIViewController@property (strong, nonatomic) IBOutlet UIImageView *imageview;@property(nonatomic,strong)NSMutable...
分类:
其他好文 时间:
2015-04-22 13:41:54
阅读次数:
194
push的时候隐藏底部的tabbar#import"mainNavigationControllers.h"@interface mainNavigationControllers ()@end@implementation mainNavigationControllers- (void)view...
分类:
其他好文 时间:
2015-04-22 11:25:02
阅读次数:
137