-1
私は私のテーブルビューでネイティブ広告を持っており、彼らはこのindexpathを使用して表示されます。変更didSelectRowAtIndexPath FUNC IndexPath
indexPath.row - Int(indexPath.row/adRowStep)
は、どのように私は上記のindexPathを使用するようにdidSelectRowAtIndexPath機能を変更できますか?
EDIT
これはcellForRowAtIndexPathのFUNCからコード
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! NearMeCell
let venue = venues[indexPath.row - Int(indexPath.row/adRowStep)]
let venueTittle = (venue["Name"] as! String)
cell.venueName.text = venueTitle
return cell
}
これは、ネイティブ広告用のコードです:私はまだ広告がどのように理解していない
func configureAdManagerAndLoadAds() {
if adsManager == nil {
adsManager = FBNativeAdsManager(placementID: "adID", forNumAdsRequested: 2)
FBAdSettings.addTestDevice("clientID")
adsManager.delegate = self
adsManager.loadAds()
}
}
同じコードを使用するとどうなりますか? – alexburtnik
投稿したコード行には何も表示されず、「ネイティブ広告」はほとんど表示されません。もっと情報が必要です。 –
@alexburtnik標準のindexPath.row –