-
Notifications
You must be signed in to change notification settings - Fork 3
/
KLFoo.h
39 lines (27 loc) · 796 Bytes
/
KLFoo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// KLFoo.h
// Demo Project
//
// Created by kinglong huang on 9/7/12.
// Copyright (c) 2012 KLStudio. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol FooDelegate;
@class KLDocument;
@interface KLFoo : NSObject {
NSString *_foo;
NSString *_bar;
}
@property (nonatomic, retain) NSString *foo;
@property (nonatomic, retain) NSString *bar;
@property (nonatomic, assign) id <FooDelegate> delegate;
+ (instancetype)fooWithString:(NSString *)string;
- (instancetype)initWithString:(NSString *)string;
- (BOOL)doWorkWithString:(NSString *)blah;
@end
@protocol FooDelegate <NSObject>
- (void)KLFooAskForReloadData:(IDFFoo *)foo;
- (void)KLFoo:(KLFoo *)foo
requestDidFinishedWithData:(NSData *)data
error:(NSError *)error;
@end