Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @property (nonatomic, assign) BOOL shouldScrollToBottom;
- - (void)viewDidLoad
- {
- [super viewDidLoad];
- _shouldScrollToBottom = YES;
- }
- - (void)viewDidLayoutSubviews
- {
- [super viewDidLayoutSubviews];
- // Scroll table view to the last row
- if (_shouldScrollToBottom)
- {
- _shouldScrollToBottom = NO;
- [_scrollView setContentOffset:CGPointMake(0, CGFLOAT_MAX)];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement