0
HTML5로 게임을했습니다. UIWebview에 동봉하고 싶습니다.왜 affine 스케일링 UIWebview 이상한 결과를 제공합니까?
먼저 내가 아핀 변환을 사용하여보기를 회전 시켰지만 마크를 벗어나서 크기가 잘못되었습니다. 프레임을 둘러싼 뷰의 프레임으로 설정하기로했습니다. not a good solution, as others have found입니다. 그래서 나는 연결 제안을 따랐고, 나는 회전과 번역 후에 게임이 잘 표시된다는 호기심에 빠졌지 만, 내가 원하는대로 스케일링을 시도하자마자 게임은 오작동합니다 (나는 환각적인 색을 얻습니다 ...). 물론 의도 한 결과는 아닙니다.
CGAffineTransform rot = CGAffineTransformMakeRotation(M_PI/2.0);
CGAffineTransform tran = CGAffineTransformMakeTranslation(0, [self statusBarFrameViewRect:self.view].size.height);
CGAffineTransform tranAndRot = CGAffineTransformConcat(rot, tran);
CGAffineTransform scale = CGAffineTransformMakeScale(self.view.frame.size.height, self.view.frame.size.width);
webView.transform = CGAffineTransformConcat(tranAndRot, scale);
// [webView setScalesPageToFit:YES]; // this line seems to do strictly nothing useful to me, whether on or off.
//I hoped it would help the contents of the view to eventually size to the scaled view, if needed.
누구에게 내가 멍청한 짓을하고 있는지에 대한 포인터가 있습니까?