码迷,mamicode.com
首页 >  
搜索关键字:implementation    ( 1803个结果
Objective-C - 方法的声明和实现
方法与函数 /* 方法 1.对象方法都是以减号 - 2.对象方法的声明必须写在@interface和@end之间 对象方法的实现必须写在@implementation和@end之间 3.对象方法只能由对象来调用 4.对象方法归类\对象所有 函数 1.函数能写在文件中的任意位置(@interface和@end之间除外),函数归文件所有 2.函数调用不依赖于对象 3.函数内部不能...
分类:其他好文   时间:2015-04-18 11:35:06    阅读次数:121
oc UIButton
#import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad {     [super viewDidLoad];          // 1.UIBu...
分类:其他好文   时间:2015-04-17 18:25:47    阅读次数:140
Android -- Context(Application的应用)
Interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system. It allows access to application-specific resources an...
分类:移动开发   时间:2015-04-17 18:11:24    阅读次数:271
lucene4.7源码研究之索引建立过程(1)
Directory整体流程还是比较简单的,图片借用Directory directory = FSDirectory.open(file);/** Creates an FSDirectory instance, trying to pick the * best implementation...
分类:Web程序   时间:2015-04-17 18:06:30    阅读次数:196
UI UIView进度条,模拟手机充电功能
#import "JRProgres.h" @implementation JRProgres {     UIView * _contentView; } - (instancetype)initWithFrame:(CGRect)frame{// 重写构造方法一次创建3个视图,分别为最外层的绿框、子1白底、子2红条     self = [super init...
分类:移动开发   时间:2015-04-17 11:28:26    阅读次数:184
oc UI输入数字n创建n条彩虹 IMP
RainBow.m #import "RainBow.h" @implementation RainBow {     NSArray * _colorArray; } -(instancetype)initWithFrame:(CGRect)frame withNum:(NSInteger) num{...
分类:其他好文   时间:2015-04-16 20:01:29    阅读次数:120
使用分类的方法,去除空格,算字符个数
1 #import "NSString+extendString.h" 2 3 @implementation NSString (extendString) 4 //1.声明一个字符串反转(比如@”123”调用方法后返回@”321”) 5 + (NSString*)revertWithStri.....
分类:其他好文   时间:2015-04-16 14:09:37    阅读次数:124
iosNSOperation依赖关系
NSOperation 依赖关系,就像你和女友,互相需要对方一样。非常有意思。 #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad {     [super viewDidLoa...
分类:移动开发   时间:2015-04-15 23:26:53    阅读次数:166
The Implementation of RFCOMM in Android
Introduction     RFCOMM provides an emulation of serial cable line settings and status of an RS-232 serial port. RFCOMM is a simple transport protocol over L2CAP. So the protocol could supports up to...
分类:移动开发   时间:2015-04-15 19:38:08    阅读次数:124
手势识别之轻点
#import "ViewController.h"@interface ViewController ()@property(nonatomic,strong)UIImageView *ImgView;@end@implementation ViewController- (void)viewDi...
分类:其他好文   时间:2015-04-15 13:06:16    阅读次数:186
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!