Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # MapView.m ...
- @implementation MapView
- - (id) initWithFrame:(CGRect)frame {
- if (self = [super initWithFrame:frame]) {
- // [self setShowsUserLocation:YES];
- [self setDelegate:[[MapDelegate alloc] initWithMapView:self]];
- # MapDelegate.m ...
- - (id)initWithMapView:(MapView *)aMapView {
- self = [super init];
- self.mapView = aMapView;
- return self;
- }
- @property (strong) id delegateContainer;
- ....
- [self setDelegateContainer:[[MapDelegate alloc] init]];
- [self setDelegate:self.delegateContainer];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement