PlaceAroundTableView.h
951 Bytes
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
//
// PlaceAroundTableView.h
// CMDataCollectTool
//
// Created by PC on 15/8/7.
// Copyright (c) 2015年 autonavi. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MAMapKit/MAMapView.h>
#import <AMapSearchKit/AMapSearchKit.h>
@protocol PlaceAroundTableViewDeleagate <NSObject>
- (void)didTableViewSelectedChanged:(AMapPOI *)selectedPoi;
- (void)didLoadMorePOIButtonTapped;
- (void)didPositionCellTapped;
@end
@interface PlaceAroundTableView : UIView <UITableViewDataSource, UITableViewDelegate, AMapSearchDelegate>
@property (nonatomic, weak) id<PlaceAroundTableViewDeleagate> delegate;
@property (nonatomic, copy) NSString *currentAddress;
@property (nonatomic, strong) AMapAddressComponent *cityAddress;
@property (nonatomic, strong) NSMutableArray *searchPoiArray;
@property (nonatomic, strong) NSIndexPath *selectedIndexPath;
- (instancetype)initWithFrame:(CGRect)frame;
- (AMapPOI *)selectedTableViewCellPoi;
@end