Rework the profile view.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 313d06b31d
commit 6dda535f24

@ -135,6 +135,9 @@ NSString *const kProfileView_LastPresentedDate = @"kProfileView_LastPresentedDat
// Avatar // Avatar
UIView *avatarRow = [UIView containerView]; UIView *avatarRow = [UIView containerView];
avatarRow.userInteractionEnabled = YES;
[avatarRow
addGestureRecognizer:[[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(avatarRowTapped:)]];
[rows addObject:avatarRow]; [rows addObject:avatarRow];
UILabel *avatarLabel = [UILabel new]; 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 - (void)infoRowTapped:(UIGestureRecognizer *)sender
{ {
if (sender.state == UIGestureRecognizerStateRecognized) { if (sender.state == UIGestureRecognizerStateRecognized) {

Loading…
Cancel
Save