-
Notifications
You must be signed in to change notification settings - Fork 0
/
PLBasketViewTableCell.h
43 lines (30 loc) · 1.25 KB
/
PLBasketViewTableCell.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
40
41
42
43
//
// PLBasketViewTableCell.h
// Plate
//
// Created by emileleon on 1/27/14.
// Copyright (c) 2014 Plate SF. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol BasketViewTableCellDelegate;
@interface PLBasketViewTableCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *itemNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *quantityLabel;
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;
@property (weak, nonatomic) IBOutlet UILabel *side1Label;
@property (weak, nonatomic) IBOutlet UILabel *side2Label;
@property (weak, nonatomic) IBOutlet UILabel *side3Label;
@property (weak, nonatomic) IBOutlet UILabel *side4Label;
@property (weak, nonatomic) IBOutlet UILabel *plateSizeLabel;
@property (assign, nonatomic) NSString *itemId;
@property (weak, nonatomic) UITableView *parentTableView;
@property (assign, nonatomic) BasketItemType itemType;
@property (assign, nonatomic) int itemIndex;
@property (assign, nonatomic) id <BasketViewTableCellDelegate> delegate;
- (IBAction)removeItem:(id)sender;
-(void)setupDelegate:(id<BasketViewTableCellDelegate>)delegate parentTable:(UITableView *)tableView;
@end
@protocol BasketViewTableCellDelegate <NSObject>
@optional
- (void)removeItemWithCell:(PLBasketViewTableCell *)cell;
@end