UITableView scrolling doesnot scroll

被刻印的时光 ゝ 提交于 2019-12-13 02:24:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!