Detect Retina Display

#define IS_RETINA ([[UIScreen mainScreen] respondsToSelector:@selector(displayLinkWithTarget:selector:)] && ([UIScreen mainScreen].scale == 2.0))

if(IS_RETINA)
{
   // Retina display
} else {
  // non-Retina display

}