-
Notifications
You must be signed in to change notification settings - Fork 73
/
ZSeatSelector.h
40 lines (32 loc) · 1.05 KB
/
ZSeatSelector.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
//
// ZSeatSelector.h
//
//
// Created by Ricardo Zertuche on 7/30/15.
//
//
#import <UIKit/UIKit.h>
#import "ZSeat.h"
@class ZSeatSelector;
@protocol ZSeatSelectorDelegate <NSObject>
- (void)seatSelected:(ZSeat *)seat;
@optional
- (void)getSelectedSeats:(NSMutableArray *)seats;
@end
@interface ZSeatSelector : UIScrollView <UIScrollViewDelegate>{
float seat_width;
float seat_height;
NSMutableArray *selected_seats;
UIView *zoomable_view;
}
@property (nonatomic, retain) UIImage *available_image;
@property (nonatomic, retain) UIImage *unavailable_image;
@property (nonatomic, retain) UIImage *disabled_image;
@property (nonatomic, retain) UIImage *selected_image;
@property (nonatomic) int selected_seat_limit;
@property (nonatomic) float seat_price;
@property (retain) id seat_delegate;
-(void)setSeatSize:(CGSize)size;
-(void)setMap:(NSString*)map;
-(void)setAvailableImage:(UIImage*)available_image andUnavailableImage:(UIImage*)unavailable_image andDisabledImage:(UIImage*)disabled_image andSelectedImage:(UIImage*)selected_image;
@end