开发者

One background image must be displayed on the whole

开发者 https://www.devze.com 2022-12-16 22:36 出处:网络
I am new to iphone development.When i tried to displayed a background image for my table view ,image appears for every cells.I want display single image开发者_Python百科 thats fits the screen and not

I am new to iphone development.When i tried to displayed a background image for my table view ,image appears for every cells.I want display single image开发者_Python百科 thats fits the screen and not displayed in every cell.Please help me out.Thanks.


Make your table view a subview of a UIView (let's call it parentView). You can then make the table view's background clear to show the UIView positioned underneath. You then set that UIView to contain an image view:

self.tableView.backgroundColor = [UIColor clearColor];
[self.parentView addSubview:myImageView];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号