ios – I have created sdk which includes storyboard in the storyboard there are 4-5 view controllers , how to access the storyboard of the sdk


I have created sdk which includes storyboard in the storyboard there are 4-5 view controllers , how to access the storyboard of the sdk.

here is my code

- (void)openAppleInAppProvisionMain {
    // NSBundle *bundle = [NSBundle bundleForClass:[self class]];
    NSBundle *bundle = [NSBundle bundleWithIdentifier:@"com.digiTech.apple.applewalletNFI"];

    NSLog(@"Received from Main Kony Callback : %@", shManager.callBack);
    NSLog(@"Received from Main Kony Data : %@", shManager.dictResponse);
    NSLog(@"method is accessible in this way");

    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"WalletMain" bundle:bundle];
    UIViewController *vc = [storyboard instantiateViewControllerWithIdentifier:@"CardsViewsController"];

    [AppleWallet performSelectorOnMainThread:@selector(presentTheViewController:) withObject:vc waitUntilDone:YES];

    [[NSNotificationCenter defaultCenter] postNotificationName:@"getCardsList" object:nil userInfo:shManager.dictResponse];
}

+ (void)presentTheViewController:(UIViewController *)vc {
    if(vc) {
        vc.modalPresentationStyle = UIModalPresentationFullScreen;
        // [KonyUIContext onCurrentFormControllerPresentModalViewController:vc animated:YES];
    }
}

in this way I am able to access this method, and also all other methods in my sample app but not able to load the storyboard of sdk to my sample app.

my storyboard settings are like this

I have tried with the bundle changes but not working.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img