Ios 颜色WithPatternImage vs CGImage vs UIImageView

Ios 颜色WithPatternImage vs CGImage vs UIImageView,ios,ios7,Ios,Ios7,我在许多论坛上看到,对于内存问题,您不应该使用colorWithPatternImage,如果您使用的是大背景图像,则应该使用UIImageView,并添加为子视图以节省内存。我尝试了这三种解决方案,所有这些都显示了使用的相同内存: // First Option UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Background"]]; [self.view addS

我在许多论坛上看到,对于内存问题,您不应该使用colorWithPatternImage,如果您使用的是大背景图像,则应该使用UIImageView,并添加为子视图以节省内存。我尝试了这三种解决方案,所有这些都显示了使用的相同内存:

// First Option
UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Background"]];
[self.view addSubview:backgroundView];
[self.view sendSubviewToBack:backgroundView];

//Second Option
UIImage *image = [UIImage imageNamed:@"Background"];
self.view.layer.contents = (id) image.CGImage;

//Third Option
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"Background"]];
我正在使用ios7sdk。在这方面,我是否有什么遗漏或改进之处