MyTable.h
上传用户:xy800802
上传日期:2020-12-29
资源大小:194k
文件大小:1k
源码类别:

iPhone

开发平台:

Objective-C

  1. #import <UIKit/UIKit.h>
  2. #import <UIKit/UITable.h>
  3. #import <UIKit/UISimpleTableCell.h>
  4. #import <UIKit/UIImageAndTextTableCell.h>
  5. #import <UIKit/UITableColumn.h>
  6. #import <UIKit/UIImage.h>
  7. #import <GraphicsServices/GraphicsServices.h>
  8. #import "Util.h"
  9. @interface MyTable : UITable
  10. {
  11.     UIView *mainView;
  12. NSString *path;
  13.     NSString *extension;
  14.     NSMutableArray *fileList;
  15.     UITableColumn *colFilename;
  16.     UITableColumn *colType;
  17. }
  18. -(id)initWithFrame : (struct CGRect)rect;
  19. -(void)dealloc;
  20. -(int)numberOfRowsInTable:(UITable *)_table;
  21. -(UITableCell *)table:(UITable *)table
  22.     cellForRow:(int)row
  23.     column:(UITableColumn *)col;
  24. -(void)_willDeleteRow:(int)row 
  25. forTableCell:(id)cell 
  26. viaEdge:(int)edge
  27. animateOthers:(BOOL)animate;
  28. -(int)swipe:(int)type 
  29. withEvent:(struct __GSEvent *)event;
  30. -(void)tableRowSelected:(NSNotification *)notification;
  31. -(void)setPath:(NSString *)_path;
  32. -(void)setView:(UIView *)_mainView;
  33. -(void)setExtension:(NSString *)_extension;
  34. -(void)reloadData;
  35. @end