@interface PlaceView () <MapViewDelegate> {
id placeSelegate;
}
@end
@implementation PlaceView
- (id)init
{
self = [super initWithSearch];
if (self) {
super.delegate = self;
}
return self;
}
# pragma mark public PlaceView
- (void)setDelegate:(id)delegate
{
placeSelegate = delegate;
}
- (void)done
{
if ([placeDelegate respondsToSelector:@selector(placeSelected:)])
{
[placeDelegate placeSelected:[map placeInfo]];
}
}
沒有留言:
張貼留言