问题
I want to develop iOS app in which i am using transparent Tababar
,
and having UITableView
on View
when i run my app, because of Transperant Tababar
my UITableView
gets behind Tababar
and i am unable to select last row of UITableView
.
See:
: Thanks in advance.回答1:
simple adjust
table.contentInset = UIEdgeInsetsMake(0, 0, 200, 0); // try setting this value
hope this helps u :)
回答2:
There are 2 possiblities:-
1). Firstly, You might have forgot to set datasource and delegate of the tableview to self.
2). The frame might be assigned incorrectly, i.e when we use both navigationbar and tab bar the height of tableView in iPhone4 is 367 and in iPhone5 it is 455.
回答3:
It's not the tab bar alpha that's the issue. It't the frame of the UITableView. Either set the frame of the table to take the tab bar into account, or:
self.tableView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
Edit, potentially iOS7 having edge to edge layout. Try in viewDidLoad
(self refers to the controller):
if ([self respondsToSelector:@selector(automaticallyAdjustsScrollViewInsets)]) {
self.automaticallyAdjustsScrollViewInsets = NO;
}
来源:https://stackoverflow.com/questions/19634467/uitableview-scrolling-doesnot-scroll