Iphone dev ios not picking up 2x images in ray's application
<p>I have downloaded ray wenderlich's code for apns application from this link</p>

<p><a href="http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2" rel="nofollow">http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2</a></p>

<p>now i converted that project of ray's to tab bar application project, now i am having a problem with tab bar image. i added x and 2x resolution images in my images folder of project, and doing this in view will appear</p>

<pre><code>AppDelegate *delegate2 =(AppDelegate *) [[UIApplication sharedApplication] delegate];

for(UIView *view in delegate2.tabBarControler.tabBar.subviews) {  
            if([view isKindOfClass:[UIImageView class]]) {  
                [view removeFromSuperview];  
            }  
        }
        [delegate2.tabBarControler.tabBar insertSubview:[[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"home.png"]] autorelease] atIndex:0]; 
</code></pre>

<p>the 2x resolution image which is home@2x.png, it is not being picked by ios 5 device (ipod 4) i know that the operating system (ios 5) automatically senses the 2x image and pick it, but in my case its not happening, rather its picking the x resolution image and there is a white line showing under tab bar, i am stuck here , please guide me thanx and regards Saad.</p>
