相关疑难解决方法(0)

iPhone - 在UITableViewController上设置背景

有没有办法在UITableViewController上设置背景视图?

我尝试使用我正在使用的代码UIViewController,但视图覆盖​​了表视图的所有内容.如果我在其中添加背景视图cellForRowAtIndexPath-method,则根本不显示.有没有人以前做过这个或者知道如何做到这一点?这是我正在使用的代码:

UIImage *image = [UIImage imageNamed: @"background.jpg"];
UIImageView *backImage = [[UIImageView alloc] initWithImage: image];
[self.view addSubview: backImage];
[self.view sendSubviewToBack: backImage];
Run Code Online (Sandbox Code Playgroud)

iphone background uitableview

50
推荐指数
4
解决办法
5万
查看次数

标签 统计

background ×1

iphone ×1

uitableview ×1