objective c - iOS issue with display controller -


I am trying to show PKAddPassesViewController on my view controller with this code:

  [auto. Assistant Alert: @ "Attzenon" Message: @ "La Registration by Grazi. Ti Appetemio In Union Service" representative: Self]; // Load from Store Store Bundle StoreCard.pkpass NSString * filePath = [[NSBundle main bundle] pathForResource: @ "Surfree" type: @ "pkpass"]; NSDTa * Data = [NSDTATA DATAVITY CONTENT OFFFIL: FILEPATH]; NSError * error; // Pass pass object with data PKPass * pass = [[PKPS alloc] initWithData: data error: & amp; Error]; // init one pass library PKPassLibrary * passLib = [[pakepis library alloc] init]; // Check if the pass library already has this (if [passLib includes: pass]) {// pass already exists in the library, display an error message UIAlertView * alertView = [[UIAlertView alloc] initWithTitle : @ "Has existed" message: @ "The person you are trying to add to the passbook already exists." Representative: cancel zerotutite: @ "OK" other button titles: zero]; [Show warning view]; } Else {// PKAddPassesViewController * vc = [[PKAddPassesViewController alloc] initWithPass: pass] to add the current view controller to the library; [Vc set deliaget: (id) self]; [Self. Navigation controller Push ViewController: animated vc: yes]; // [self present ViewController: animated vc: yes complete: zero]; When this line is called ( [self.navigationController pushViewController: vc animated: yes]; ), logically I should see the View Controller with my passbook where I can add passbook to the library, but this 

Edit:

In addition, if I debug my way object then it is zero.

  PKAdSpace viewcounter * addPassViewController = [[PKAdpseviewCentronAloc] InitVeth Path: Newpass]; AddPassViewController.delegate = self; [Self-current ViewController: Animated AddPassViewController: Yes Completed: Zero];  

Comments