-1

My first problem that i had was that my last UITableViewCell never had a separator which i wanted. I solved it using this code:

self.tableView.tableFooterView = [[UIView alloc] init];

Now that worked perfectly however with one problem. when i add that all my other views disappear. Here is a picture of before i use the one line of code above and after:

enter image description here

enter image description here

How can i fix this?

Timo Cengiz
  • 3,367
  • 4
  • 23
  • 45

4 Answers4

0

Set a zero height table footer view, like so:

 self.tableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];

Because the table thinks there is a footer to show, it doesn't display any cells beyond those you explicitly asked for.

LoVo
  • 1,856
  • 19
  • 21
  • I am thinking it has to do something with my constraints? Because the view is directly below the last cell maybe it bounces of somewhere because a "footerview" is added. Could that be it? – Timo Cengiz Mar 26 '15 at 11:16
0

Have you tried to use the viewForFooterInSection function?

Superolo
  • 98
  • 6
0

Add a vertical spacing of 0 between your table view bottom and the view's top which is placed below it. And you need to set one view's height fixed either for UITableView or UIView. Add this code of line in viewDidLoad. It will display the separator also for last cell.

self.tableView.tableFooterView = [UIView new];

Screenshot:

enter image description here

Jassi
  • 537
  • 8
  • 21
0

May be this help

You have to set translucent property of tab bar controller

see this question to more reference...

iOS 7 TabBar Translucent issue

Community
  • 1
  • 1
Bevin Patel
  • 302
  • 3
  • 11