objcdoc
 全部  文件 函数 变量 类型定义 枚举 枚举值 属性 宏定义 
MyDocViewController.h
浏览该文件的文档.
1 //
2 // MyDocViewController.h
3 // objcdoc
4 //
5 // Created by zyl910 on 13-6-4.
6 // Copyright (c) 2013年 zyl910. All rights reserved.
7 //
8 
24 #import <UIKit/UIKit.h>
25 
26 
27 #define BUFSIZE 100
28 
29 
37 #define min(a,b) ( ((a)<(b)) ? (a) : (b) )
38 
39 
41 typedef enum _ObjCDocToolEnum{
45 
46 
51 typedef struct _RectInt {
52  int x;
53  int y;
54  int width;
55  int height;
56 }RectInt, *PRectInt;
57 typedef const RectInt* PCRectInt;
58 
59 
61 typedef union _FloatByte {
62  float f;
63  unsigned char bytes[4];
64 } FloatByte;
65 
66 
73 typedef void (*ActionCallback)(void* sender, void* userdata);
74 
75 
82 typedef void (^ActionHandler)(id sender, id userdata);
83 
84 
86 @interface DocA : NSObject
87 @end;
88 
93 @interface DocB : NSObject
94 @end;
95 
96 
98 @protocol MyDocDelegate <NSObject>
99 
100 @end
101 
156 @interface MyDocViewController : UIViewController {
157  @private
158  int _privateInt;
159 
160  @protected
162  id<MyDocDelegate> _delegate;
163 
164  @package
165  int _packageInt;
166 
167  @public
169 }
170 
171 #pragma mark - property
172 
174 @property (nonatomic,assign) NSInteger num;
175 
180 @property (nonatomic,strong) NSString* str;
181 
182 
183 // 测试行尾注释.
184 @property (nonatomic,strong) NSString* strend1;
185 @property (nonatomic,strong) NSString* strend2;
186 @property (nonatomic,strong) NSString* strend3;
187 @property (nonatomic,strong) NSString* strend4;
188 @property (nonatomic,assign) int dummy;
189 
190 
192 @property (nonatomic, assign) ObjCDocToolEnum docTool;
193 
195 @property (nonatomic, assign) RectInt rectInt;
196 
198 @property (nonatomic, assign) PCRectInt prectInt;
199 
201 @property (nonatomic, assign) FloatByte floatByte;
202 
204 @property (nonatomic, strong) id<MyDocDelegate> delegate;
205 
206 
227 @property (nonatomic,strong) NSString* alink;
228 
238 @property (nonatomic,strong) NSString* alinklocal1;
239 
252 @property (nonatomic,strong) NSString* alinklocal2;
253 
267 @property (nonatomic,strong) NSString* alinklocal3;
268 
269 
270 #pragma mark - method
271 
273 - (void)someMethod;
274 
282 - (int)someMethodByInt:(int)value;
283 
298 - (NSString*)someMethodByStr:(NSString*)value;
299 
300 
306 + (int)classInt;
307 
308 @end
309 
310 
313 
323 - (void)callActionCallback:(void*)sender userdata:(void*)userdata handler:(ActionCallback)handler;
324 
334 - (void)callActionHandler:(id)sender userdata:(id)userdata handler:(ActionHandler)handler;
335 
336 
337 @end