#import <Z7MessagesPanelTableView.h>
Definition at line 13 of file Z7MessagesPanelTableView.h.
◆ didSwipeMenu:()
- (void) didSwipeMenu: |
|
(UIGestureRecognizer *) |
gestureRecognizer |
|
|
implementation |
Definition at line 145 of file Z7MessagesPanelTableView.m.
145 :(UIGestureRecognizer *)gestureRecognizer {
147 if (gestureRecognizer.state == UIGestureRecognizerStateEnded) {
148 CGPoint swipeLocation = [gestureRecognizer locationInView:self];
150 UITableViewCell* swipedCell = [
self cellForRowAtIndexPath:swipedMenuIndexPath];
152 [swipedCell setBackgroundColor:[UIColor orangeColor]];
155 NSInteger nRow = [swipedMenuIndexPath row];
156 [dataDelegate messageSwiped:nRow];
NSIndexPath * swipedMenuIndexPath
◆ getViewHeightReqmt()
- (float) getViewHeightReqmt |
|
|
|
|
implementation |
Reimplemented from Z7EmpaneledTableView.
Definition at line 125 of file Z7MessagesPanelTableView.m.
127 NSArray<EmailMessage *> *eMessages = [dataDelegate retrieveEmailMessages];
128 NSInteger nMesgs = [eMessages count];
130 float headersRequirement = [
super getViewHeightReqmt];
132 float extraMargin = 0;
133 float ret = headersRequirement + nMesgs * (44.0 + extraMargin);
134 NSLog(
@"MessagesPanelTableView.getViewHeightReqmt: headersRequirement: %3.2f, messages: %ld", headersRequirement, (
long)nMesgs);
135 NSLog(
@"MessagesPanelTableView.getViewHeightReqmt: table bounds hwight: %3.2f",
self.bounds.size.height);
◆ initRemoveGesture()
- (void) initRemoveGesture |
|
|
|
|
implementation |
Definition at line 139 of file Z7MessagesPanelTableView.m.
141 UISwipeGestureRecognizer *gesture = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(didSwipeMenu:)];
142 gesture.direction = UISwipeGestureRecognizerDirectionRight;
143 [
self addGestureRecognizer:gesture];
◆ initWithFrame:andComponents:inContainer:() [1/2]
- (id) initWithFrame: |
|
(CGRect) |
frame |
andComponents: |
|
(NSArray *) |
components |
inContainer: |
|
(id< Z7MessagesTableDelegate >) |
container |
|
|
| |
◆ initWithFrame:andComponents:inContainer:() [2/2]
- (id) initWithFrame: |
|
(CGRect) |
frame |
andComponents: |
|
(NSArray<NSDictionary *>*) |
components |
inContainer: |
|
(id<Z7MessagesTableDelegate>) |
container |
|
|
| |
|
implementation |
Definition at line 20 of file Z7MessagesPanelTableView.m.
21 andComponents:(NSArray<NSDictionary *>*)components
22 inContainer:(id<Z7MessagesTableDelegate>) container
24 NSLog(
@"Z7MessagesPanelTableView.init: components: %@", components);
26 self = [
super initWithFrame:frame];
30 self.dataSource = container;
31 [
self setDelegate:self];
33 dataDelegate = container;
36 [mDateFormatter setTimeStyle:NSDateFormatterNoStyle];
37 [mDateFormatter setDateStyle:NSDateFormatterMediumStyle];
39 [
self initRemoveGesture];
NSDateFormatter * mDateFormatter
◆ tableView:didSelectRowAtIndexPath:()
- (void) tableView: |
|
(UITableView *) |
tableView |
didSelectRowAtIndexPath: |
|
(NSIndexPath *) |
indexPath |
|
|
| |
|
implementation |
◆ focusEmailMsg
The documentation for this class was generated from the following files: