| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //
- // UIPopoverListView.h
- // UIPopoverListViewDemo
- //
- // Created by su xinde on 13-3-13.
- // Copyright (c) 2013年 su xinde. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @class UIPopoverListView;
- @protocol UIPopoverListViewDataSource <NSObject>
- @required
- - (UITableViewCell *)popoverListView:(UIPopoverListView *)popoverListView
- cellForIndexPath:(NSIndexPath *)indexPath;
- - (NSInteger)popoverListView:(UIPopoverListView *)popoverListView
- numberOfRowsInSection:(NSInteger)section;
- - (NSInteger)numberOfSectionsInUIPopoverListView:(UIPopoverListView *)popoverListView;
- -(NSString*)popoverListView:(UIPopoverListView*)popoverListView titleForHeaderInSection:(NSInteger)section;
- @end
- @protocol UIPopoverListViewDelegate <NSObject>
- @optional
- - (void)popoverListView:(UIPopoverListView *)popoverListView
- didSelectIndexPath:(NSIndexPath *)indexPath;
- - (void)popoverListViewCancel:(UIPopoverListView *)popoverListView;
- - (CGFloat)popoverListView:(UIPopoverListView *)popoverListView
- heightForRowAtIndexPath:(NSIndexPath *)indexPath;
- - (void)setDateText:(NSString*) dateText;
- @end
- @interface UIPopoverListView : UIView <UITableViewDataSource, UITableViewDelegate,UITextViewDelegate,UIWebViewDelegate,UITabBarDelegate>
- {
- UITableView *_listView;
- UILabel *_titleView;
- UIControl *_overlayView;
- UIDatePicker *_datePickerView;
- UIWebView *_webView;
-
- //id<UIPopoverListViewDataSource> _datasource;
- //id<UIPopoverListViewDelegate> _delegate;
-
- }
- @property (nonatomic, strong) id<UIPopoverListViewDataSource> datasource;
- @property (nonatomic, strong) id<UIPopoverListViewDelegate> delegate;
- @property (nonatomic, retain) UITableView *listView;
- @property (nonatomic, strong) UIDatePicker *datePickerView;
- @property (nonatomic,strong) UITextView *textView;;
- @property (nonatomic, copy) dispatch_block_t dateBlock;
- @property (nonatomic, copy) dispatch_block_t BackBlock;
- @property (nonatomic,strong) NSDictionary *detailDicArr;
- @property (nonatomic,strong) NSString *webViewLink;
- @property (nonatomic,assign)BOOL isCannotClickBackGround;
- @property (nonatomic,strong) NSString *ImageWeburl;
- - (void)setTitle:(NSString *)title;
- - (id)initWithFrame:(CGRect)frame isDateView:(BOOL)isDateView;
- - (void)show;
- - (void)dismiss;
- - (id)initWithFrame:(CGRect)frame isDetail:(NSString*)isDetail;
- - (id)initWithFrame:(CGRect)frame DateAndTimeTitle:(NSString*)title;
- - (id)initWithFrame:(CGRect)frame forTextView:(BOOL)isTextView;
- - (id)initWithFrame:(CGRect)frame forMapView:(NSString*)webViewLink;
- - (id)initWithFrame:(CGRect)frame imageName:(NSString*)name;
- @end
|