diff --git a/XHLaunchAd/XHLaunchAd/XHLaunchAdButton.m b/XHLaunchAd/XHLaunchAd/XHLaunchAdButton.m index 5f4c70c..3ca09ea 100644 --- a/XHLaunchAd/XHLaunchAd/XHLaunchAdButton.m +++ b/XHLaunchAd/XHLaunchAd/XHLaunchAdButton.m @@ -36,7 +36,7 @@ - (instancetype)initWithSkipType:(SkipType)skipType{ if (self) { _skipType = skipType; - CGFloat y = XH_FULLSCREEN ? 44 : 20; + CGFloat y = [[UIApplication sharedApplication] statusBarFrame].size.height; self.frame = CGRectMake(XH_ScreenW-80,y, 70, 35);//方形 switch (skipType) { case SkipTypeRoundTime: