diff options
author | Vitaly Takmazov | 2019-03-21 23:39:03 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-03-21 23:39:03 +0300 |
commit | 6e49fc5c4273e7597925c133c3a6985b6ad85ecc (patch) | |
tree | ca5c8bac8e6bbe73d28db597be38840a4e88deca /Juick/ViewControllers/ThreadViewController.m | |
parent | 31cee12a4f5c2733965e99e2fa9add28fee266c2 (diff) |
First RC
Diffstat (limited to 'Juick/ViewControllers/ThreadViewController.m')
-rw-r--r-- | Juick/ViewControllers/ThreadViewController.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Juick/ViewControllers/ThreadViewController.m b/Juick/ViewControllers/ThreadViewController.m index ead94fe..44f9e8a 100644 --- a/Juick/ViewControllers/ThreadViewController.m +++ b/Juick/ViewControllers/ThreadViewController.m @@ -9,13 +9,16 @@ #import "ThreadViewController.h" #import "NewPostViewController.h" #import "MessageCell.h" +#import "APIClient.h" @implementation ThreadViewController -(void) viewDidLoad { - [super viewDidLoad]; [self setTitle:@"Thread"]; + [self setPath:[APIClient threadUrl]]; + [super viewDidLoad]; + self.messagesDelegate = self; } -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { @@ -31,4 +34,9 @@ } } +-(void) loadMore { + Message *lastMsg = [self.messages lastObject]; + [self setShouldScrollToBottomOnRefresh:lastMsg.rid > 0]; +} + @end |