-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
nkws
committed
Jan 25, 2017
1 parent
ce0333e
commit 9d39faf
Showing
29 changed files
with
527 additions
and
129 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// BannerTableViewCell.h | ||
// SampleApp | ||
// | ||
// Fluct SDK | ||
// Copyright (c) 2016 fluct, Inc. All rights reserved. | ||
|
||
#import <UIKit/UIKit.h> | ||
@import FluctSDK; | ||
|
||
@interface BannerTableViewCell : UITableViewCell | ||
@property(weak, nonatomic) IBOutlet FSSBannerView *banner; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// BannerTableViewCell.m | ||
// SampleApp | ||
// | ||
// Fluct SDK | ||
// Copyright (c) 2016 fluct, Inc. All rights reserved. | ||
|
||
#import "BannerTableViewCell.h" | ||
|
||
@implementation BannerTableViewCell | ||
|
||
@end |
12 changes: 12 additions & 0 deletions
12
SampleApp/Objective-C/SampleApp/BannerTableViewController.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// | ||
// BannerTableViewController.h | ||
// SampleApp | ||
// | ||
// Fluct SDK | ||
// Copyright (c) 2016 fluct, Inc. All rights reserved. | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface BannerTableViewController : UITableViewController | ||
|
||
@end |
50 changes: 50 additions & 0 deletions
50
SampleApp/Objective-C/SampleApp/BannerTableViewController.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// | ||
// BannerTableViewController.m | ||
// SampleApp | ||
// | ||
// Fluct SDK | ||
// Copyright (c) 2016 fluct, Inc. All rights reserved. | ||
|
||
#import "BannerTableViewCell.h" | ||
#import "BannerTableViewController.h" | ||
|
||
@interface BannerTableViewController () | ||
|
||
@end | ||
|
||
@implementation BannerTableViewController | ||
|
||
- (void)viewDidLoad { | ||
[super viewDidLoad]; | ||
self.tableView.estimatedRowHeight = 70; | ||
} | ||
|
||
- (NSInteger)tableView:(UITableView *)tableView | ||
numberOfRowsInSection:(NSInteger)section { | ||
return 30; | ||
} | ||
|
||
- (BannerTableViewCell *)tableView:(UITableView *)tableView | ||
cellForRowAtIndexPath:(NSIndexPath *)indexPath { | ||
BannerTableViewCell *cell = [[BannerTableViewCell alloc] init]; | ||
|
||
if (indexPath.row == 0) { | ||
cell = [tableView dequeueReusableCellWithIdentifier:@"banner"]; | ||
[cell.banner setMediaID:(@"0000005617")]; | ||
} else if (indexPath.row == 15) { | ||
// 再利用時に広告を更新する場合 | ||
// ※ 広告の更新を行うごとに広告のインプレッションが発生します | ||
cell = [tableView dequeueReusableCellWithIdentifier:@"banner"]; | ||
[cell.banner refreshBanner]; | ||
} else if (indexPath.row == 29) { | ||
// 再利用時にメディアIDを変更する場合 | ||
cell = [tableView dequeueReusableCellWithIdentifier:@"banner"]; | ||
[cell.banner setMediaID:(@"0000005732")]; // 異なるメディアIDを設定してください | ||
[cell.banner refreshBanner]; | ||
} else { | ||
cell = [tableView dequeueReusableCellWithIdentifier:@"other"]; | ||
} | ||
|
||
return cell; | ||
} | ||
@end |
Binary file modified
BIN
+460 KB
(100%)
SampleApp/Objective-C/SampleApp/FluctSDK/FluctSDK.framework/FluctSDK
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
SampleApp/Objective-C/SampleApp/Images.xcassets/LaunchImage.launchimage/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.