iphone - 在 google mapView iOS 上添加时 UITableView 不滚动

标签 iphone ios objective-c google-maps uitableview

我添加了 UITableViewUIViewController 的 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/

相关文章:

ios - 最佳编码实践 - 在同一函数中画线和圆 - 结构、开关、类函数

ios - 有关仪器内存泄漏检测的问题

ios - NSSortDescriptor 中文...怎么样?

ios - post方法如何只发送必需的参数objective-c

c++ - 带有汇编器插入的跨平台并行应用程序

ios - UIImagePickerController 错误 : Snapshotting a view that has not been rendered results in an empty snapshot in iOS 7

iphone - iOS 上的 Facebook apprequest 实现 - 接受的请求正在打开应用程序商店,而不是我的应用程序

iphone - 标准 View 和 UITabBarController View 之间的转换?

ios - apple-app-site-association 通用链接签名问题

iphone - ios:在 UIButton 中以编程方式编辑的内容居中