RefreshControl para tablas

@property (strong, nonatomic) UIRefreshControl *refreshControl; - (void)viewDidLoad { self.refreshControl = [[UIRefreshControl alloc] init]; [self.refreshControl addTarget:self action:@selector(refrescarTablaHoy) forControlEvents:UIControlEventValueChanged]; [self.myTableView addSubview:self.refreshControl]; } - (void)dealloc { self.refreshControl = nil; } #pragma mark - #pragma mark - REFRESCAR TABLA -(void)refrescarTablaHoy { [self.modelo actualizarActividadesParaHoy]; } #pragma mark - #pragma mark - METODOS DELEGADOS (MyModel) -(void)listadoBloquesHoy:(NSArray *)listaBloquesHoy! { [self.refreshControl endRefreshing]; }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.