//下拉刷新
- (void)Downrefresh
{
__weak MedicationCollectionViewController *puad = self;
[puad.MedicatableView addHeaderWithCallback:^{
[puad.MedicaMutarray removeAllObjects];
number=1;
[puad MedicaRequest];
[puad.MedicatableView headerEndRefreshing];
}];
}
//上拉加载
- (void)haderwith
{
__weak MedicationCollectionViewController *pudb = self;
[pudb.MedicatableView addFooterWithCallback:^{
number++;
// [pudb.Newmuwarr removeAllObjects];
[pudb MedicaRequest];
[pudb.MedicatableView footerEndRefreshing];
}];
}