커스텀 스플레시화면을 위해 뷰를 현재 화면에 덮어서 표시하고 싶었는데,


원래 소스가 self.view에 이상한 짓을 많이 해서 addSubView해서 bringSubviewToFront해도 표시가 안되서


AppDelegate의 window를 잡아와서 얹어버렸다.



UIView *target = [[UIApplication sharedApplication].windows objectAtIndex:0];


UIView *vv = [[UIView alloc] initWithFrame:CGRectMake(0, 0, target.bounds.size.width, target.bounds.size.height)];


vv.backgroundColor = [UIColor redColor];


[target addSubview:vv];




    

Posted by tenn
,