わっふるわっふる
 
 



 
















UIImageView


iphone   cocoa  



UIImageView  UIImage 
UIImageView 


contentMode 


UIImageView  contentMode  UIViewContentModeScaleAspectFit 
 UIImageView 
contentMode 
typedef enum {
   UIViewContentModeScaleToFill,        // これがデフォルト。UIImageViewにめいっぱいひろげる
   UIViewContentModeScaleAspectFit,     // 画像のaspect比を維持し、ちょうどはいるようにする
   UIViewContentModeScaleAspectFill,    // 画像のaspect比を維持し、めいっぱい広げる(はみ出した分がみれなくなる)
   UIViewContentModeRedraw,             // UIViewContentModeScaleToFill これと同じに見えるけどなんだろう・・
   UIViewContentModeCenter,             // 画像サイズをそのままに、真ん中を表示
   UIViewContentModeTop,                //                         上を
   UIViewContentModeBottom,             //                         下を
   UIViewContentModeLeft,               //                         左を
   UIViewContentModeRight,              //                         右を
   UIViewContentModeTopLeft,            //                         左上を
   UIViewContentModeTopRight,           //                         右上を
   UIViewContentModeBottomLeft,         //                         左下を
   UIViewContentModeBottomRight,        //                         右下を
} UIViewContentMode;


 
#import <UIKit/UIKit.h>
@interface RnamikiViewController : UIViewController
@end

@implementation RnamikiViewController
- (void)loadView {
  UIImageView *imageView = [[UIImageView alloc]init];
  UIImage *image = [[UIImage alloc] initWithContentsOfFile:path];

  imageView.contentMode = UIViewContentModeScaleAspectFit;
  imageView.image = image;
  [image release];
  self.view = imageVew;
  [imageView release];
}
@end






rnamiki      










 






 









 

id:rnamiki id:rnamiki  
       


 




 





 



 

 

 

Pro  





 




C++  libcurl  libxml2 使  



.folder  



(indicator)IB使  



IDP  



UIImageView  






 




   
2009  

2009 / 8  

2009 / 6  

2009 / 3  

2009 / 2  




   
2008  

2008 / 12  

2008 / 10  

2008 / 4  

2008 / 3  

2008 / 2  




   
2007  

2007 / 10  

2007 / 8  













rnamiki使


 

 




わっふるわっふる  

Powered by Hatena Blog  |