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];
}
vuforia-sdk-ios-3-0-9-2 compatibility with sprite kit
did you solve this problem ? i trying to make vuforia-sdk-ios-5-0-5 compatibility with scene kit, just like you .
could you tell me how to do ? If you can show me your code.thx