-1

我在用SVPullToRefresh

__weak InventorySearch *safeSelf = self;

[self.tableView addPullToRefreshWithActionHandler:^{
    [safeSelf refresh];   
 }];

方法 refresh 做了一些设置工作,然后调用[self presentmodalviewcontroller:controller animated:YES];

然而,视图没有动画,只是立即呈现。

4

1 回答 1

1

代替

 [safeSelf refresh];

尝试这个

[safeSelf performSelectorOnMainThread:@selector(refresh) withObject:nil waitUntilDone:NO];
于 2012-06-03T19:31:38.833 回答