아이폰어플개발정보2010. 10. 12. 05:59
Display Images

Display Images

Display an image anywhere on the screen, without using UI Builder. You can use this for other types of views as well.
CGRect myImageRect = CGRectMake(0.0f, 0.0f, 320.0f, 109.0f); UIImageView *myImage = [[UIImageView alloc] initWithFrame:myImageRect]; [myImage setImage:[UIImage imageNamed:@"myImage.png"]]; myImage.opaque = YES; // explicitly opaque for performance [self.view addSubview:myImage]; [myImage release];

'아이폰어플개발정보' 카테고리의 다른 글

cancel alert  (0) 2010.10.12
UIBarButtonItem을 viewDidLoad에서 만들고 숨기기  (0) 2010.10.12
Display Images  (0) 2010.10.12
Application Frame얻기  (0) 2010.10.12
A basic UIWebView  (0) 2010.10.12
Animation: Move an object  (0) 2010.10.12
Posted by 오늘마감

댓글을 달아 주세요