初始化UITableView的同时,请求数据。在返回数据前,UITableView在header和footer上会短暂出现null。因为初始化
UITableView时,会触发UITableViewDataSource协议方法。所以在没有数据时,在协议方法中,return 0;就不会初始化header和footer了。