调用的方法。 现在,它封装在单独的方法中,以便于调用,如下所示:
女性化的长椅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;