iOS基于Birfost的模块化开发
实现各个模块完全代码隔离,适合项目比较大的应用,个人学习可以参考。
if ([annotation isKindOfClass:[MKPointAnnotation class]]) { static NSString *customReuseIndetifier = @"customReuseIndetifier"; CusAnnotationView *annotationView = (CusAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:customReuseIndetifier]; if (annotationView == nil) { annotationView = [[CusAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:customReuseIndetifier]; } annotationView.canShowCallout = NO; annotationView.draggable = YES; annotationView.calloutOffset = CGPointMake(0, -5); [self makeImages]; // 随机生成图片 annotationView.portrait = [UIImage imageNamed:@"hehe"]; return annotationView; }