小编Div*_*iya的帖子

GADNativeAdView 在 8.0 版 Google 移动广告 SDK ios 上未显示 Outlet

在版本 8.0 之前,这是与GADUnifiedNativeAdView一起使用的。但更新到 8.0 后,没有显示GADNativeAdView的出口。请参阅下面所附的屏幕截图。

这显示了视图的类

这显示右侧没有插座。

请帮忙

objective-c ios swift google-mobile-ads

5
推荐指数
0
解决办法
287
查看次数

当Scroll UITableView它与iOS名称重叠时

当我滚动tableview时会给出这种类型的重叠 在此输入图像描述

我在CellForRow AtIndexPath方法中编写下面的代码,我以编程方式创建tableview ...

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
static NSString *CellIdentifier = @"cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (!cell) {
    cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier];
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
}

NSDictionary *info = [ASSETHELPER getGroupInfo:_groupArray[indexPath.row]];
UIImageView *view;

if (indexPath.row % 2) {
    view=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"dark_bg"]];
}else{
    view=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"light_bg"]];
}
cell.backgroundView=view;

UIImageView *imgView=[[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 50, 50)];
imgView.backgroundColor=[UIColor clearColor];
[imgView.layer setCornerRadius:25];
[imgView.layer setMasksToBounds:YES];
[imgView.layer setBorderColor:[UIColor whiteColor].CGColor];
[imgView setImage:[info objectForKey:@"thumbnail"]];
[cell.contentView addSubview:imgView];

UILabel *label=[[UILabel alloc]initWithFrame:CGRectMake(80, 20, 200, 30)];

[label …
Run Code Online (Sandbox Code Playgroud)

objective-c alasset alassetslibrary uicollectionview ios7

-1
推荐指数
1
解决办法
1491
查看次数