你可以使用bounds属性 -CGSize myBannerSize = myBanner.bounds.size; 苹果公司没有替换 sizeFromBannerContextSizeIdentifier - 你需要使用 bounds。