add message exercises
This commit is contained in:
@@ -14,6 +14,7 @@ static NSString *const kAdUrlKey = @"adUrl";
|
||||
@interface GiGaStartAdView : UIView
|
||||
|
||||
@property (nonatomic,strong) UIImageView *adView;
|
||||
|
||||
/**
|
||||
显示启动页广告
|
||||
*/
|
||||
|
||||
@@ -16,9 +16,8 @@
|
||||
@property (nonatomic,strong) NSTimer *countTimer;
|
||||
@property (nonatomic,assign) int count;
|
||||
|
||||
|
||||
@end
|
||||
static int const showTime = 12;
|
||||
static int const showTime = 5;
|
||||
|
||||
@implementation GiGaStartAdView
|
||||
|
||||
@@ -51,7 +50,8 @@ static int const showTime = 12;
|
||||
[_adView addGestureRecognizer:tap];
|
||||
CGFloat btnW = 60;
|
||||
CGFloat btnH = 30;
|
||||
_countBtn = [[UIButton alloc] initWithFrame:CGRectMake(KMainW - btnW - 24, btnH, btnW, btnH)];
|
||||
_countBtn = [[UIButton alloc] initWithFrame:CGRectMake(KMainW - btnW - 24, btnH + 10, btnW, btnH)];
|
||||
|
||||
[_countBtn addTarget:self action:@selector(removeAdView) forControlEvents:UIControlEventTouchUpInside];
|
||||
[_countBtn setTitle:[NSString stringWithFormat:@"跳过%d",showTime] forState:UIControlStateNormal];
|
||||
_countBtn.titleLabel.font = [UIFont systemFontOfSize:15];
|
||||
@@ -76,10 +76,8 @@ static int const showTime = 12;
|
||||
}
|
||||
|
||||
-(void)gotoAd{
|
||||
|
||||
[self removeAdView];
|
||||
NC_POST_NAME_OBJECT(APP_PUSHTO_DETAILVIEW, nil);
|
||||
|
||||
}
|
||||
|
||||
-(void)countDown{
|
||||
|
||||
Reference in New Issue
Block a user