11#import "VerifyCertificateController.h" 
   16- (id)initWithNibName:(NSString *)nibNameOrNil
 
   17               bundle:(NSBundle *)nibBundleOrNil
 
   19               params:(NSMutableDictionary *)params
 
   21  self = [
super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
 
   26    [
self setModalPresentationStyle:UIModalPresentationFormSheet];
 
   35  NSString *message = NSLocalizedString(
 
   36      @"The identity of the remote computer cannot be verified. Do you want to connect anyway?",
 
   37      @"Verify certificate view message");
 
   40  [_label_message setText:message];
 
   42      setText:NSLocalizedString(@"Issuer:", @"Verify certificate view issuer label")];
 
   43  [_btn_accept setTitle:NSLocalizedString(@"Yes", @"Yes Button") forState:UIControlStateNormal];
 
   44  [_btn_decline setTitle:NSLocalizedString(@"No", @"No Button") forState:UIControlStateNormal];
 
   46  [_label_issuer setText:[_params valueForKey:@"issuer"]];
 
   51  [
super viewDidUnload];
 
   55- (void)viewDidDisappear:(BOOL)animated
 
   57  [
super viewDidDisappear:animated];
 
   60  [[_session uiRequestCompleted] signal];
 
   63- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
 
   68#pragma mark - Action handlers 
   70- (IBAction)acceptPressed:(
id)sender
 
   72  [_params setValue:[NSNumber numberWithBool:YES] forKey:@"result"];
 
   75  [
self dismissModalViewControllerAnimated:YES];
 
   78- (IBAction)declinePressed:(
id)sender
 
   80  [_params setValue:[NSNumber numberWithBool:NO] forKey:@"result"];
 
   83  [
self dismissModalViewControllerAnimated:YES];