0
오디오 또는 비디오 재생의 진행 상태를 표시하는 모든보기 컨트롤러에 하단보기를 추가하고 싶습니다. I need Like this하단의 모든 화면에서보기를 표시하는 방법
난 다음
let window = UIApplication.sharedApplication().keyWindow!
let v = UIView(frame: CGRect(x: window.frame.origin.x, y: window.frame.origin.y, width: window.frame.width, height: window.frame.height))
window.addSubview(v);
v.backgroundColor = UIColor.blackColor()
let v2 = UIView(frame: CGRect(x: 50, y: 50, width: 100, height: 50))
v2.backgroundColor = UIColor.whiteColor()
window.addSubview(v2)
에서했던 그러나 그것은 모든 화면에 표시되지 않습니다.
왜 하단에 이미 뷰가있는 사용자 정의 UIViewController를 만들고 다른 모든 ViewController를 상속하면 어떨까요? – apineda