How can I insert an imageView behind a UITableView in a fixed position (no scrolling)?

Kex

I am trying to insert an image behind my table view using:

 UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"newpink120"]];
    imageView.frame=CGRectMake([[UIScreen mainScreen]bounds].size.width-60, [[UIScreen mainScreen]bounds].size.height-60-self.navigationController.navigationBar.frame.size.height, 60, 60);
    [self.tableView addSubview:imageView];
    [self.tableView sendSubviewToBack:imageView];

This seems to work but the image scrolls with the table. Is there anyway to keep it fixed in the bottom right corner?

Retro

For creating a static tableview background, you have to do 2 things

1) set self.tableView.backgroundColor = [UIColor clearColor];

2) and then initialise the table background view with an UIImageView and set the image you want to show there.

[self.tableView setBackgroundView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image.png"]] ];

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Background scrolling behind position:fixed; on iOS

From Dev

How to I prevent content from scrolling behind footer of UITableView

From Dev

How can I set a div to position:fixed, when scrolling it to the browsers top?

From Dev

XML how do i get the imageView fixed to a position in a Layout

From Java

How can I update a table to insert decimal points at a fixed position in numbers?

From Dev

How can i get the fixed position in the window?

From Dev

How can you z-index text / div behind a scrolling fixed nav header?

From Dev

How can you z-index text / div behind a scrolling fixed nav header?

From Dev

How to disable background content scrolling in position fixed

From Dev

How to detect scrolling in div when position is fixed

From Dev

How to Stop Jumping Position fixed element on scrolling

From Dev

How to Stop Jumping Position fixed element on scrolling

From Dev

Can I lock the position of an imageview?

From Dev

How can I insert text behind the specified character in Vim?

From Dev

How can I fix the position of tooltips within a scrolling <div>?

From Dev

How can I control the scrolling speed of recyclerView.smoothScrollToPosition(position)?

From Dev

Position absolute but with fixed scrolling

From Dev

How can I make position:fixed work on iOS 7?

From Java

How can I have a position: fixed; behaviour for a flexbox sized element?

From Dev

How can I make position:fixed work on iOS 7?

From Dev

How can i get a fixed position in a window with XNA?

From Dev

How can I have a position:fixed after a scroll event?

From Dev

How can I make position fixed for span under li

From Dev

PHP - How can i insert a "fixed" string into database?

From Dev

how to insert affix navbar, and the nav fixed position

From Dev

how to insert affix navbar, and the nav fixed position

From Dev

How Do I Limit Scrolling to a Fixed Div?

From Dev

How Do I Limit Scrolling to a Fixed Div?

From Dev

Content behind Position: fixed is intractable

Related Related

  1. 1

    Background scrolling behind position:fixed; on iOS

  2. 2

    How to I prevent content from scrolling behind footer of UITableView

  3. 3

    How can I set a div to position:fixed, when scrolling it to the browsers top?

  4. 4

    XML how do i get the imageView fixed to a position in a Layout

  5. 5

    How can I update a table to insert decimal points at a fixed position in numbers?

  6. 6

    How can i get the fixed position in the window?

  7. 7

    How can you z-index text / div behind a scrolling fixed nav header?

  8. 8

    How can you z-index text / div behind a scrolling fixed nav header?

  9. 9

    How to disable background content scrolling in position fixed

  10. 10

    How to detect scrolling in div when position is fixed

  11. 11

    How to Stop Jumping Position fixed element on scrolling

  12. 12

    How to Stop Jumping Position fixed element on scrolling

  13. 13

    Can I lock the position of an imageview?

  14. 14

    How can I insert text behind the specified character in Vim?

  15. 15

    How can I fix the position of tooltips within a scrolling <div>?

  16. 16

    How can I control the scrolling speed of recyclerView.smoothScrollToPosition(position)?

  17. 17

    Position absolute but with fixed scrolling

  18. 18

    How can I make position:fixed work on iOS 7?

  19. 19

    How can I have a position: fixed; behaviour for a flexbox sized element?

  20. 20

    How can I make position:fixed work on iOS 7?

  21. 21

    How can i get a fixed position in a window with XNA?

  22. 22

    How can I have a position:fixed after a scroll event?

  23. 23

    How can I make position fixed for span under li

  24. 24

    PHP - How can i insert a "fixed" string into database?

  25. 25

    how to insert affix navbar, and the nav fixed position

  26. 26

    how to insert affix navbar, and the nav fixed position

  27. 27

    How Do I Limit Scrolling to a Fixed Div?

  28. 28

    How Do I Limit Scrolling to a Fixed Div?

  29. 29

    Content behind Position: fixed is intractable

HotTag

Archive