方法与函数
/*
方法
1.对象方法都是以减号 -
2.对象方法的声明必须写在@interface和@end之间
对象方法的实现必须写在@implementation和@end之间
3.对象方法只能由对象来调用
4.对象方法归类\对象所有 函数
1.函数能写在文件中的任意位置(@interface和@end之间除外),函数归文件所有
2.函数调用不依赖于对象
3.函数内部不能...
分类:
其他好文 时间:
2015-04-18 11:35:06
阅读次数:
121
#import "ViewController.h"
@interface
ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super
viewDidLoad];
// 1.UIBu...
分类:
其他好文 时间:
2015-04-17 18:25:47
阅读次数:
140
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
Directory整体流程还是比较简单的,图片借用Directory directory = FSDirectory.open(file);/** Creates an FSDirectory instance, trying to pick the * best implementation...
分类:
Web程序 时间:
2015-04-17 18:06:30
阅读次数:
196
#import "JRProgres.h"
@implementation JRProgres
{
UIView * _contentView;
}
- (instancetype)initWithFrame:(CGRect)frame{// 重写构造方法一次创建3个视图,分别为最外层的绿框、子1白底、子2红条
self = [super
init...
分类:
移动开发 时间:
2015-04-17 11:28:26
阅读次数:
184
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
NSOperation 依赖关系,就像你和女友,互相需要对方一样。非常有意思。
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super
viewDidLoa...
分类:
移动开发 时间:
2015-04-15 23:26:53
阅读次数:
166
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