How do I place a label over an AVPlayer playing a video?
0
How do I place a label over or "on top of" an AVPlayer playing a video? I have tried adjusting Z-position as suggested in another SO post but it is not working, the video player seems to be in the front of all the labels. //this is my label self.commentLabel.layer.masksToBounds = YES; self.commentLabel.layer.cornerRadius = 15.0; [self.commentLabel sizeToFit]; self.commentLabel.center = CGPointMake(self.view.frame.size.width/2,self.view.frame.size.height/1.4); self.commentLabel.layer.zPosition=100; //this is my video player self.playerViewController = [[AVPlayerViewController alloc] init]; NSString*str3=[self.FRIENDDATA stringByReplacingOccurrencesOfString:@" " withString:@"_"]; NSURL *url = [NSURL URLWithString:[NSString stringWit...