如何解决Мy 内容消失,以便使用 Xamarin.iOS 在启动时显示 Google 广告
我有以下问题。当我启动应用程序时,我的内容没有出现,只有 Google Ad Mob 的横幅出现。 仅显示 GPS 许可消息,但不显示内容本身。
我使用的代码:
public MainPage()
{
InitializeComponent();
_restServiceForecast = new RestServiceForecast();
_ = displayHourlyForecastStartUp();
_ = ButtonClickedGPS();
co2lbl.Text = "CO2";
nolbl.Text = "NO";
no2lbl.Text = "NO2";
o3lbl.Text = "O3";
so2lbl.Text = "SO2";
pm2_5lbl.Text = "PM2_5";
pm10lbl.Text = "PM10";
nh3lbl.Text = "NH3";
frameFinePowders.IsVisible = false;
AdmobControl admobControl = new AdmobControl()
{
AdUnitId = AppConstants.BannerId
};
Label adLabel = new Label() { Text = "Ads will be displayed here!" };
Content = new StackLayout()
{
Children = { adLabel,admobControl }
};
this.Title = "Admob Page";
}
如何让横幅出现在我想要的某个框架下?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。