我添加了 UITableView
在 UIViewController
的 xib 中添加。我通过单击标记将此 VC 添加为谷歌地图的 subview 。我在 viewDidLoad
中尝试过我的VC的方法-
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
aTableView.scrollEnabled = YES;
aTableView.bounces = YES;
aTableView.userInteractionEnabled=YES;
aTableView.delegate=self;
aTableView.dataSource = self;
}
这是我的
didTapMarker
GMSMapViewDelegate
的方法- (BOOL)mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker1
{
MYViewController *aViewController = [[MYViewController alloc] initWithNibName:@"MYViewController" bundle:nil];
[self.view addSubview:towerInfoVC.view];
return YES;
}
如果我将此 VC 添加到另一个 VC 作为 subview 而不是谷歌地图,然后滚动工作。我在谷歌上搜索但没有找到任何运气。请告诉我在谷歌地图的情况下做错了什么。
最佳答案
如果您在 iPad 上运行您的应用程序,您应该从 UIPopoverController 展示您的 TableView
关于iphone - 在 google mapView iOS 上添加时 UITableView 不滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17944454/