2012年11月6日 星期二

UIImage: imageNamed and imageWithContentOfFile

XCode Tutorials for Beginners: Best way to use UIImageView (Memory Optimized)

建議是使用 imageWithContentOfFile 來代替 imageNamed,

在使用頻率高的圖片使用 imageNamed 讓他 cache 也無妨。

沒有留言:

張貼留言