1
在最初的UIImageView我把它設置爲如何更新UIImageView的contentMode?
mCurrentImageView.contentMode = UIViewContentModeLeft;
因此,如果設備旋轉我會改變contentMode ,但它沒有任何效果。我該如何解決它?
if ([UIDevice currentDevice].orientation == UIInterfaceOrientationLandscapeLeft || [UIDevice currentDevice].orientation == UIInterfaceOrientationLandscapeRight) {
mCurrentImageView.contentMode = UIViewContentModeScaleAspectFit;
}
謝謝rickharrison – RAGOpoR 2010-06-03 16:01:50
沒問題。如果它適合你,請隨時提供我的答案。 – rickharrison 2010-06-03 17:41:53