Skip to content

Instantly share code, notes, and snippets.

@notxcain
Last active December 30, 2015 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notxcain/7889347 to your computer and use it in GitHub Desktop.
Save notxcain/7889347 to your computer and use it in GitHub Desktop.
QWTableViewModel
@class RACSignal;
@class RACCommand;
@protocol QWTableViewModel <NSObject>
/// Returns a signal sending QWSectionedListChange objects
@property (nonatomic, strong, readonly) RACSignal *changesSignal;
- (NSUInteger)numberOfSections;
- (NSUInteger)numberOfItemsInSection:(NSUInteger)section;
- (NSString *)titleForHeaderInSection:(NSInteger)section;
- (id)itemAtIndexPath:(NSIndexPath *)indexPath;
- (BOOL)canEditItemAtIndexPath:(NSIndexPath *)indexPath;
- (RACCommand *)editCommand;
- (void)selectItemAtIndexPath:(NSIndexPath *)indexPath;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment