2

私は、iOS 6 で完全に正常に動作するアプリに取り組んでいます。1 つは、グループ化されたテーブルビューの背景色を透明に設定できないことです。Heresはもう動作しない私のコードです

    tableForDetails = [[UITableView alloc]initWithFrame:CGRectMake(0, yAxisTable, 320, 150) style:UITableViewStyleGrouped];
    UIColor *backGroundColor = [UIColor clearColor];
    UIView *bview = [[UIView alloc]init];
    [bview setBackgroundColor:backGroundColor];
    [tableForDetails setBackgroundView:bview];

助けていただければ幸いです。ありがとう

4

4 に答える 4

4

iOS7 でグループ化された uiTableview の背景の透明度を設定するのは非常に簡単です。解決策は、当初考えていたよりもさらに簡単です。

[tableForDetails setBackgroundColor:[UIColor clearColor]];

または半透明のみ

[tableForDetails setBackgroundColor:[[UIColor alloc]initWithRed:1.0 green:1.0 blue:1.0 alpha:0.5]];

これは私にとってはうまくいきました。

于 2013-10-01T13:06:01.193 に答える
0

私はこれでそれを修正しました:

tableView.backgroundView = UIView.new;
于 2013-11-26T13:00:26.407 に答える