Lines Matching refs:self

44     self.navigationItem.rightBarButtonItem = self.editButtonItem;
47 self.image.layer.cornerRadius = self.image.frame.size.width / 2;
48 self.image.clipsToBounds = YES;
51 [FRAUIUtils setImage:self.image fromIssuerLogoURL:self.identity.image];
52 self.issuer.text = self.identity.issuer;
53 self.accountName.text = self.identity.accountName;
54 [FRAUIUtils setView:self.backgroundView issuerBackgroundColor:self.identity.backgroundColor];
56 if ([self identityHasOathMechanism]) {
57 self.oathTableViewCell.delegate = [FRAOathMechanismTableViewCellController
58 controllerWithView:self.oathTableViewCell mechanism:[self oathMechanism]];
61 if ([self identityHasPushMechanism]) {
62 self.pushTableViewCell.delegate = [FRAPushMechanismTableViewCellController
63 controllerWithView:self.pushTableViewCell mechanism:[self pushMechanism]];
65 [self reloadData];
70 [self reloadData];
71 [self.oathTableViewCell.delegate viewWillAppear:animated];
72 [self.pushTableViewCell.delegate viewWillAppear:animated];
73 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleIdentityDatabaseChanged:) name:FRAIdentityDatabaseChangedNotification object:nil];
74 if (!self.timer) {
75 self.timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(timerCallback:) userInfo:nil repeats:YES];
81 [[NSNotificationCenter defaultCenter] removeObserver:self];
82 [self.oathTableViewCell.delegate viewWillDisappear:animated];
83 [self.pushTableViewCell.delegate viewWillDisappear:animated];
84 [self.timer invalidate];
85 self.timer = nil;
90 if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) {
91 [self.tableView setSeparatorInset:UIEdgeInsetsZero];
93 if ([self.tableView respondsToSelector:@selector(setLayoutMargins:)]) {
94 [self.tableView setLayoutMargins:UIEdgeInsetsZero];
101 controller.pushMechanism = [self pushMechanism];
110 return [self hasMechanismAtIndexPath:indexPath];
126 [self.oathTableViewCell.delegate didTouchUpInside];
132 if (self.tableView.editing && [self hasMechanismAtIndexPath:indexPath]) {
140 if (indexPath.row == OATH_MECHANISM_ROW_INDEX && ![self identityHasOathMechanism]) {
142 } else if (indexPath.row == PUSH_MECHANISM_ROW_INDEX && ![self identityHasPushMechanism]) {
157 FRAMechanism *mechanism = [self mechanismAtIndexPath:indexPath];
162 initWithTitle:[NSString stringWithFormat:NSLocalizedString(@"mechanism_delete_confirmation_title", nil), self.identity.issuer]
163 message:[NSString stringWithFormat:NSLocalizedString(@"mechanism_delete_confirmation_message", nil), self.identity.issuer]
170 [self deleteMechanism:mechanism];
172 [self setEditing:NO animated:YES];
186 return [self oathMechanism] != nil;
190 return [self pushMechanism] != nil;
194 return [self.identity mechanismOfClass:[FRAHotpOathMechanism class]] ? [self.identity mechanismOfClass:[FRAHotpOathMechanism class]] : [self.identity mechanismOfClass:[FRATotpOathMechanism class]];
198 return (FRAPushMechanism *)[self.identity mechanismOfClass:[FRAPushMechanism class]];
204 mechanism = [self oathMechanism];
206 mechanism = [self pushMechanism];
225 [self.navigationController popViewControllerAnimated:YES];
230 [self reloadData];
234 [self.tableView beginUpdates];
236 if ([self identityHasOathMechanism]) {
237 self.oathTableViewCell.hidden = NO;
238 if (self.oathTableViewCell.delegate) {
239 self.oathTableViewCell.delegate =
240 [FRAOathMechanismTableViewCellController controllerWithView:self.oathTableViewCell mechanism:[self oathMechanism]];
242 [self.oathTableViewCell.delegate reloadData];
244 self.oathTableViewCell.hidden = YES;
245 self.oathTableViewCell.delegate.view = nil;
246 self.oathTableViewCell.delegate = nil;
249 if ([self identityHasPushMechanism]) {
250 self.pushTableViewCell.hidden = NO;
251 if (self.pushTableViewCell.delegate) {
252 self.pushTableViewCell.delegate =
253 [FRAPushMechanismTableViewCellController controllerWithView:self.pushTableViewCell mechanism:[self pushMechanism]];
255 [self.pushTableViewCell.delegate reloadData];
257 self.pushTableViewCell.hidden = YES;
258 self.pushTableViewCell.delegate.view = nil;
259 self.pushTableViewCell.delegate = nil;
262 [self.tableView endUpdates];
266 if (!self.tableView.editing) {
267 [self reloadData];