先介绍代码技巧:
1.
public abstract class SuperClass implements SomeInterface
{
// This is the implementation of the interface method
// Note it's final so it can't be overridden
public final...
分类:
其他好文 时间:
2015-02-13 13:27:10
阅读次数:
203
转载出处:http://www.cnblogs.com/bxljoy/p/3939409.html官方介绍HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) file format. XSSF is t...
分类:
编程语言 时间:
2015-02-13 13:03:27
阅读次数:
337
ViewPager概述:Layout manager that allows the user to flip left and right through pages of data. You supply an implementation of a PagerAdapter to genera...
分类:
移动开发 时间:
2015-02-12 18:09:14
阅读次数:
287
Context 英文直译:上下文Google官方文档概述:Interface to global information about an application environment. This is an abstract class whose implementation is provi...
分类:
移动开发 时间:
2015-02-11 20:23:42
阅读次数:
148
#import @interface MyView : UIView@end#import "MyView.h"@implementation MyView- (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFra....
分类:
移动开发 时间:
2015-02-10 00:21:47
阅读次数:
154
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; // 数组的排序 //...
分类:
编程语言 时间:
2015-02-08 00:21:34
阅读次数:
468
1 @implementation ICSDropShadowView 2 3 - (void)drawRect:(CGRect)rect 4 { 5 self.layer.shadowOffset = CGSizeZero; 6 self.layer.shadowOpacity...
分类:
其他好文 时间:
2015-02-07 11:35:23
阅读次数:
133
pimpl 模式(Private Implementation),我们常常听到诸如“不要改动你的公有接口”这样的建议,所以我们一般都会修改私有接口,但是这会导致包含该头文件的所有源文件都要重新编译,这会是个麻烦事儿。Pimpl机制,顾名思义,将实现私有化,力图使得头文件对改变不透明。桥接模式(bri...
分类:
编程语言 时间:
2015-02-06 23:08:26
阅读次数:
470
oc在类别里给类加属性以及原理如何在类别里给类加属性呢,有鸭子模样的我们就认为他是鸭子了.@interface NSObject (XY)
@property (nonatomic, strong) id tempObject;
@end@implementation NSObject (XY)@dynamic tempObject;- (id)tempObject
-...
分类:
其他好文 时间:
2015-02-05 20:34:55
阅读次数:
147
// 九宫格 #import "ViewController.h"@interface ViewController ()@property (nonatomic ,strong) NSArray *apps;@end@implementation ViewController- (void)vie...
分类:
其他好文 时间:
2015-02-04 18:19:02
阅读次数:
190