How to fill the background with image in landscape in IOS? 如何使image水平铺满屏幕
2014-04-15 16:58
513 查看
UIImageView *backgroundImage = [[UIImageView alloc] initWithFrame:self.view.frame];
[backgroundImage setImage:[UIImage imageNamed:@"spriteBG.png"]];
[backgroundImage setContentMode:UIViewContentModeTopLeft];
[self.view addSubview:backgroundImage];
[self.view sendSubviewToBack:backgroundImage];
[backgroundImage setImage:[UIImage imageNamed:@"spriteBG.png"]];
[backgroundImage setContentMode:UIViewContentModeTopLeft];
[self.view addSubview:backgroundImage];
[self.view sendSubviewToBack:backgroundImage];
相关文章推荐
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- How to set background image of a component in GWTEXT
- How To Use Git Source Control with Xcode in iOS 6
- 如何分屏幕(How to split the Screen)
- how to deal with the situation that the language support option disappears in linux ubuntu
- 【原创】如何让SharePoint2010的内联代码支持.Net framework 3.5[How to embed inline code in aspx with .net framework 3.5 syntax]
- Attempt to load Oracle client libraries threw BadImageFormatException. This problem will occur when running in 64 bit mode with the 32 bit Oracle client components installed.
- How to open a web site with the default web browser in a NEW window
- ios xcode Could not load the "MyImage.png" image referenced from a nib in the bundle with identifier "com.mytest.MyProject"
- How to Create Text Image on the fly with ASP.NET
- UINavigationBar:How to add background image with UINavigationController?
- How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
- How to know is the file exist in C++ - 在C++中如何判断文件是否存在
- 如何使用OpenCV的处理图像,文字变得锐利和清晰?(How to use OpenCV to process image so that the text become sharp and clea
- iOS 如何在苹果电脑上安装svn 服务器(how to install svn server on the computer of mac os x)
- How to Pop Open an image window that resizes to fit the image in ASP.net 1.x and 2.0 Beta 1
- Add Custom Background Image to UINavigationBar in iOS 5
- how to do with the special characters in the xml data
- ORCLE 如何停止一个JOB【HOW TO STOP A JOB IN THE ORACLE】
- 在Bean(java类)中如何取到jspx中Bindings的数据?How to get the ADF BindingContainer in a managed bean?