在uitableview中未选择GADNativeExpressAdView

时间:2016-12-12 08:29:25

标签: ios swift uitableview

当我点击UITableViewCell时,它会被选中,但不会打开浏览器。

           cell = UITableViewCell(frame: CGRect(x: 0, y: 0, width:  self.tableView.bounds.width, height: 90))
            let nativeExpressAdView = GADNativeExpressAdView(frame: CGRect(x: 0, y: 0, width: self.tableView.bounds.width, height: 90))
            nativeExpressAdView.adUnitID = "adunitid"
            nativeExpressAdView.rootViewController = self

            let request = GADRequest()
            //request.testDevices = [kGADSimulatorID]

            dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), {
                nativeExpressAdView.loadRequest(request)
            })

            cell.selectionStyle = .None
            cell.backgroundView = nativeExpressAdView

当我点击GADNativeExpressAdView时,它不会转换为app store

enter image description here

0 个答案:

没有答案