0
我想通过以下代码添加一个UIView作为一个子视图到一个UITableViewController的观点
//In a UITableViewController Implementation file
self.loadingPageView = [[[UIView alloc]initWithFrame:[UIScreen mainScreen].applicationFrame] autorelease];
self.loadingPageView.frame = self.view.bounds;
self.loadingPageView.backgroundColor = [UIColor darkGrayColor];
[self.view addSubview:loadingPageView];
我跑后,我得到以下显示的子视图添加到UITableViewController
的看法
添加UIView
作为子视图后,是否有办法将表视图完全隐藏起来?
如果你想隐藏tableview,你为什么要使用UITableView? – 2011-06-04 14:48:58
我想要做的是当用户点击一个刷新按钮时,在uitableview上加载一个子视图或覆盖作为一种“加载页面”。我可以在uitableview之上添加新的视图吗? – Zhen 2011-06-04 15:18:55