结束 `UIRefreshControl`

创建了没有TableViewControllerUIRefreshcontrol,如何在另一个方法中结束它?这是创建方法:

UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
    [refreshControl addTarget:self action:@selector(handleRefresh) forControlEvents:UIControlEventValueChanged];
    [_tableView addSubview:refreshControl];

我找到解决方法了已经

UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
    [refreshControl addTarget:self action:@selector(handleRefresh:) forControlEvents:UIControlEventValueChanged];
    [_tableView addSubview:refreshControl];
-

-(void) handleRefresh:(UIRefreshControl *)controller
    {
        //Refresh code
        controller.endRefreshing;
    }