nsscreen专题

mac开发-获取NSScreen是否为retina屏

这里写NSScreen的分类Category - (BOOL)isRetinaDisplay{return [NSScreen isRetinaDisplayOfScreen:self];}+ (SInt32)isRetinaDisplayOfScreen:(NSScreen *)aScreen{if ( aScreen == nil ) {return -1