想通了
子类 EKEventViewController 然后在该类 viewDidAppear 中增加 tableview 中滚动视图的垂直 contentSize 在最后一行结束后添加到我的小视图控制器中
+(void) viewDidAppear:(BOOL)animated
{
if ([self.event.location length]>0)
{
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle: nil];
_mev = (MapEventView*)[mainStoryboard instantiateViewControllerWithIdentifier: @"MAP_EVENT_VIEW"];
UITableView* tv=[self getEKEventTableView];
//tv.showsVerticalScrollIndicator=YES;
tv.contentSize=CGSizeMake(tv.contentSize.width, tv.contentSize.height+MAP_EVENT_VIEW_PADDING+_mev.view.frame.size.height);
// get last row in last sectoin
int lastSection=[tv numberOfSections]-1;
int lastRow=[tv numberOfRowsInSection:lastSection]-1;
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:lastRow inSection:lastSection];
UITableViewCell* cell=[tv cellForRowAtIndexPath:indexPath];
float mapeventview_origin=cell.frame.origin.y+cell.frame.size.height;
TGLog(@"%d,%d %f %f", lastSection, lastRow, cell.frame.origin.y, mapeventview_origin);
TGLog(@"event %@ location %@", self.event.title, self.event.location);
_mev.ewc=[[EKEventWithCoords alloc] init];
_mev.ewc.event=self.event;
[tv addSubview:_mev.view];
[_mev.view setCenter:CGPointMake(_mev.view.center.x, _mev.view.center.y+mapeventview_origin)];
}
}