Commit 3879f697 authored by Jonathan Cichon's avatar Jonathan Cichon

updated examples and sdk update

parent a43ee9b9
......@@ -2,10 +2,10 @@ PODS:
- SDWebImage (4.3.3):
- SDWebImage/Core (= 4.3.3)
- SDWebImage/Core (4.3.3)
- Tickaroo2CoreEmbed (3.0.21):
- Tickaroo2CoreEmbed (3.0.22):
- SDWebImage (~> 4.0)
- TickarooBase (= 3.0.21)
- TickarooBase (3.0.21)
- TickarooBase (= 3.0.22)
- TickarooBase (3.0.22)
DEPENDENCIES:
- Tickaroo2CoreEmbed
......@@ -19,8 +19,8 @@ SPEC REPOS:
SPEC CHECKSUMS:
SDWebImage: de4d90b5bff3571eae7bd16202b1f43135409fa5
Tickaroo2CoreEmbed: 4d7c0f50dcd3ef0890736576b2bd226e38907aa1
TickarooBase: e3ea326254c5303df81de958bf9e0ded7ed314f7
Tickaroo2CoreEmbed: 39cb2da15b49401034d0a288284385a17e8977af
TickarooBase: 88113a1508bf2a576697247c35c77b4b3d1b24f9
PODFILE CHECKSUM: 5d924e086c68ffe53ad7b87645dc899423482e52
......
This diff is collapsed.
......@@ -79,7 +79,6 @@ static void * kTApiCustomerFrameworkAd_AssociatedObject;
}
- (void)loadAdViewForRow:(TApiAdRow *)row ad:(TApiAbstractAd *)ad completion:(void (^)(UIView<T2AdView> *))completion {
TApiCustomerFrameworkAd *myAd = nil;
if ([ad isKindOfClass:[TApiCustomerFrameworkAd class]]) {
myAd = (TApiCustomerFrameworkAd *)ad;
......@@ -90,8 +89,8 @@ static void * kTApiCustomerFrameworkAd_AssociatedObject;
if (myAd.adView && myAd.adView.isLoaded) {
completion(myAd.adView);
} else {
// HTMLAdView *adView = [[HTMLAdView alloc] initWithAd:myAd];
ImageAdView *adView = [[ImageAdView alloc] initWithAd:myAd];
HTMLAdView *adView = [[HTMLAdView alloc] initWithAd:myAd];
// ImageAdView *adView = [[ImageAdView alloc] initWithAd:myAd];
myAd.adView = adView;
adView.loadCompletionCallback = completion;
......@@ -112,7 +111,7 @@ static void * kTApiCustomerFrameworkAd_AssociatedObject;
@synthesize ad=_ad;
- (instancetype)initWithAd:(TApiCustomerFrameworkAd *)ad {
self = [super initWithFrame:CGRectMake(0, 0, 0, 50)];
self = [super initWithFrame:CGRectMake(0, 0, 0, 60)];
if (self) {
self.ad = ad;
[self buildUI];
......@@ -120,10 +119,6 @@ static void * kTApiCustomerFrameworkAd_AssociatedObject;
return self;
}
- (void)willAppearOnScreen {
}
- (void)buildUI {
self.clipsToBounds = YES;
}
......
......@@ -18,11 +18,15 @@
- (void)viewDidLoad {
[super viewDidLoad];
UIButton *button = [[UIButton alloc] initWithFrame:(CGRect) {
.origin = {(self.view.frame.size.width-200)/2, (self.view.frame.size.height-40)/2},
.size = {200, 40},
}];
[button setTitle:@"embeded Ticker" forState:UIControlStateNormal];
[button setAttributedTitle:[[NSAttributedString alloc] initWithString:@"embeded Ticker →" attributes:@{NSForegroundColorAttributeName : [UIColor whiteColor], NSFontAttributeName : [UIFont systemFontOfSize:40]}] forState:UIControlStateNormal];
button.titleLabel.adjustsFontSizeToFitWidth = YES;
button.titleLabel.minimumScaleFactor = 0.5;
[self.view addSubview:button];
[button addTarget:self action:@selector(goToTicker) forControlEvents:UIControlEventTouchUpInside];
......@@ -31,8 +35,10 @@
- (void)goToTicker {
TApiTickerRef *ref = [[TApiTickerRef alloc] init];
ref.tickerId = @"58e3b1ebf7596cf6cfae69c1";
ref.showMeta = false;
ref.showScoreboard = false;
ref.showScoreboard = true;
ref.limit = 10;
UIViewController<T2EmbedController> *cont = [T2EmbedManager viewControllerForRef:ref];
cont.title = @"myTitle";
cont.trackingUserInfos = @{@"myCustomTrackingId" : @"1234"};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment