2013-07-17 21 views
0

我想使用卡通漫畫來顯示圖像,但是我不知道圖像的大小,因此它不會顯示它被擠壓或者類似的東西。我想裁剪它,使它完美適合。有誰知道圖像大小?什麼是卡通漫畫的圖像尺寸

+0

您可以更改根據您reqirement圖像的大小。 – Balu

回答

1

,你可以在這裏設置視圖大小,

- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index 
{ 
     UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"%@",[menuViews objectAtIndex:index]]]; 
     UIView* _reflectionView =[[[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, image.size.width, image.size.height)] autorelease]; 
     UIImageView *imgview = [[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, image.size.width, image.size.height)] autorelease]; 
     imgview.image = image; 
     [_reflectionView addSubview:imgview]; 
     return _reflectionView; 
} 
+1

永遠不會知道這個謝謝! – user2590480

+0

歡迎親愛的伴侶。 – Balu