ios – How to access the storyboard of an SDK?

I have created an SDK which includes a 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:@""];

    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 I’m not able to load the storyboard of the SDK to my sample app.

My storyboard settings are like this.

I have tried with the bundle changes but not working.

Latest articles


Related articles

Leave a reply

Please enter your comment!
Please enter your name here