mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Rework the profile view.
// FREEBIE
This commit is contained in:
parent
313d06b31d
commit
6dda535f24
1 changed files with 10 additions and 0 deletions
|
@ -135,6 +135,9 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
|
|||
// Avatar
|
||||
|
||||
UIView *avatarRow = [UIView containerView];
|
||||
avatarRow.userInteractionEnabled = YES;
|
||||
[avatarRow
|
||||
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(avatarRowTapped:)]];
|
||||
[rows addObject:avatarRow];
|
||||
|
||||
UILabel *avatarLabel = [UILabel new];
|
||||
|
@ -490,6 +493,13 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
|
|||
}
|
||||
}
|
||||
|
||||
- (void)avatarRowTapped:(UIGestureRecognizer *)sender
|
||||
{
|
||||
if (sender.state == UIGestureRecognizerStateRecognized) {
|
||||
[self avatarTapped];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)infoRowTapped:(UIGestureRecognizer *)sender
|
||||
{
|
||||
if (sender.state == UIGestureRecognizerStateRecognized) {
|
||||
|
|
Loading…
Reference in a new issue