imageNamed
来源:互联网 发布:网络作家水平面 编辑:程序博客网 时间:2024/05/16 11:57
imageNamed:
Returns the image object associated with the specified filename.
+ (UIImage *)imageNamed:(NSString *)name
Parameters
- name
The name of the file, including its filename extension. If this is the first time the image is being loaded, the method looks for an image with the specified name in the application’s main bundle.
Return Value
The image object for the specified file, or nil
if the method could not find the specified image.
Discussion
This method looks in the system caches for an image object with the specified name and returns that object if it exists. If a matching image object is not already in the cache, this method loads the image data from the specified file, caches it, and then returns the resulting object.
Availability
- Available in iPhone OS 2.0 and later.
Related Sample Code
- BubbleLevel
- CrashLanding
- TableViewSuite
- TheElements
- UICatalog
Declared In
UIImage.h
- imageNamed
- (UIImage *)imageNamed
- (UIImage *)imageNamed
- +imageNamed:方法
- imageNamed && imageWithContentsOfFile
- About memory of imageNamed
- 万恶的imageNamed
- imageNamed的限制
- UIImage imageNamed 内存问题!!!
- UIImage imagenamed 用法好坏
- 万恶的imageNamed
- [UIImage imageNamed:@""]使用误区
- [UIImage imageNamed:@""]使用误区
- [UIImage imageNamed:@""]使用误区
- [UIImage imageNamed:@""]使用误区
- imageNamed imageWithContentsOfFile 区别
- [UIImage imageNamed:@""]使用误区
- imageNamed imageWithContentsOfFile initWithContentsFile区别
- 有手机的人一定要看咯!!!!!!!
- 开源虚拟化项目-Xen
- 每个软件架构师应该知道的97件事
- vmware red hat linux9 no link present. Check cable
- 摄影师爱恨交加的上海车展展台!
- imageNamed
- C++中的预处理
- 维护类-批量更新表的架构名(用户名)
- Windows 7节省电池电量的九个途径
- 如何利用C#创建和调用DLL
- Windows 7 Starter三个程序限制详解
- new
- SQL Server 2005常用函数汇总
- 三个最好的免费短信发送服务