首页 > 编程知识 正文

uniapp网络请求封装,app对接广告

时间:2023-05-05 12:37:04 阅读:120759 作者:506

调用的方法。 现在,它封装在单独的方法中,以便于调用,如下所示:

女性化的长椅splash ad=[ gdtsplashadalloc ] initwithappkey : @ ' 1105344611 ' placement id : @ ' 9040714184494018 '

splashAD.delegate=self;

if([uiscreenmainscreen]bounds ).size.height=568.0f]

{

slashad.background color=[ uicolorcolorwithpatternimage 3360俏皮的银耳汤imageNamed:@'icon_bg']];

}

else

{

slashad.background color=[ uicolorcolorwithpatternimage 3360俏皮的银耳汤imageNamed:@'icon_bg']];

}

splashAD.fetchDelay=3;

self.bottom view=[ uiviewalloc ] initwithframe : cgrectmake (0,[uiscreenmainscreen]bounds ).size.width

logo.center=self.bottom view.center;

self.bottom view.background color=[ uicolorwhitecolor ];

self.splash=splashAD;

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。