https://github.com/globakmaxim/gmloadingeffectcell
https://github.com/globakmaxim/gmloadingeffectcell
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/globakmaxim/gmloadingeffectcell
- Owner: GlobakMaxim
- Created: 2017-03-17T08:26:17.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T13:26:26.000Z (about 8 years ago)
- Last Synced: 2025-02-15T05:30:00.775Z (4 months ago)
- Language: Objective-C
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loading effect for Table view cell

### Cell has:
+ animation duration
+ complition block
+ failure block#### cellForRowAtIndexPath method look like this
```objective-c
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
GMLoadingTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[GMLoadingTableViewCell cellIdentifier]];
cell.label.text = @"Cell text"
cell.animationDuration = 2;
cell.completionBlock = ^{
NSLog(@"Done!");
};
cell.failureBlock = ^{
NSLog(@"Fail!");
};
return cell;
}
```#### Important
```objective-c
- (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
return nil;
}- (NSIndexPath *)tableView:(UITableView *)tableView willDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
return nil;
}
```