"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

vuforia-sdk-ios-3-0-9-2 compatibility with sprite kit

Hi,

I am trying to present image targets (from vuforia samples) from a viewcontroller which has skview as it's subview and i am getting a black screen.

NOTE: If i remove the lines that adds skview as viewcontroller subview it works as expected.

 

- (void)viewDidLoad {

    [super viewDidLoad];

    // Do any additional setup after loading the view, typically from a nib.

    

    SKView *testView = [[SKView alloc]initWithFrame:CGRectMake(0, 0, 360, 480)];

    [self.view addSubview:testView];

    

    

    UIButton *vuforia = [[UIButton alloc]initWithFrame:CGRectMake(10, 10,35, 35)];

    [vuforia setTitle:@"vuforia" forState:UIControlStateNormal];

    [vuforia addTarget:self action:@selector(testAction:) forControlEvents:UIControlEventTouchUpInside];

    [self.view addSubview:vuforia];

    

    

    

}

-(IBAction)testAction:(id)sender{

    

    NSLog(@"test");

    

    UIViewController *vc = [[SampleAppSelectorViewController alloc] initWithNibName:@"SampleAppSelectorViewController" bundle:nil];

    UINavigationController *nc = [[UINavigationController alloc]initWithRootViewController:vc];

    

    [self presentViewController:nc animated:YES completion:nil];

 

    

}