I'm working on an iPad game that's using SpriteKit. I need to be able to add a UIView atop the SKView that gets created by default. I am trying to do so like this in SKScene:
- (void)didMoveToView:(SKView *)view
{
float currentTop = (self.view.frame.size.width - 100);
float tileViewWidth = self.view.frame.size.height;
CGRect tileViewRect = CGRectMake(0, currentTop, tileViewWidth, 100);
self.fTileView = [[UIView alloc] initWithFrame:tileViewRect];
[view addSubview:self.fTileView];
}
But the view never shows up, I just get the default SKView. Why is this?