简体   繁体   中英

Constraints not working with ADBannerView

I've put an ADBannerView at the top of my app, but the banner view keeps covering up the SKView below it by about 10-20 pixels. I've checked the constraints in storyboard and they look fine - there's a vertical space constraint of 0 between the bottom of the ADBannerView and the SKView. Why is this not showing correctly?

在此处输入图片说明

在此处输入图片说明

Ends up that I was initializing the scene with initWithSize using self.view.bounds.size in the view controller. This resized the scene to the wrong dimensions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM