iphone Programming Glossary: ratioaspect
iPhone UIWebView width does not fit after zooming operation + UIInterfaceOrientation change http://stackoverflow.com/questions/2890673/iphone-uiwebview-width-does-not-fit-after-zooming-operation-uiinterfaceorienta UIInterfaceOrientation toInterfaceOrientation duration NSTimeInterval duration CGFloat ratioAspect webview.bounds.size.width webview.bounds.size.height switch toInterfaceOrientation case UIInterfaceOrientationPortraitUpsideDown.. the zoom scale. if scroll respondsToSelector @selector setZoomScale scroll.minimumZoomScale scroll.minimumZoomScale ratioAspect scroll.maximumZoomScale scroll.maximumZoomScale ratioAspect scroll setZoomScale scroll.zoomScale ratioAspect animated.. scroll.minimumZoomScale scroll.minimumZoomScale ratioAspect scroll.maximumZoomScale scroll.maximumZoomScale ratioAspect scroll setZoomScale scroll.zoomScale ratioAspect animated YES break default Going to Landscape mode for UIScrollView..
|