if([[[UIDevice currentDevice] systemVersion] floatValue] >= 3.2f)
{
CGRect winRect = [[UIScreen mainScreen] bounds];
CCLOG("winRect w = %f, h = %f", winRect.size.width, winRect.size.height);
CGSize winSize = [[UIScreen mainScreen] currentMode].size;
CCLOG("currentModeSize w %f h%f", winSize.width, winSize.height);
bool isRetina =
[UIScreen instancesRespondToSelector:@selector(currentMode)] ?
CGSizeEqualToSize(CGSizeMake(winRect.size.width*2, winRect.size.height*2), winSize)
||CGSizeEqualToSize(CGSizeMake(winRect.size.height*2, winRect.size.width*2), winSize)
: FALSE;
}

// Determine whether the device is a HD device

How to determine ios More about whether the device is a high definition screen

  1. How to make full use of Windows Phone HD screen

    Nokia Recently released two 6 Inch large screen mobile phone :Lumia 1520 and Lumia 1320. To support this device WP Upgraded the operating system GDR3 Support 1080P High definition resolution (1520), although GER3 Is to provide ...

  2. How to determine ios Whether an app is installed in the device

    URL Schemes Just study the key words Common URL Schemes see http://www.cnblogs.com/huangzs/p/4491286.html if ([[UIApplicatio ...

  3. Judge iOS Whether the device has escaped from prison

    - (BOOL)isJailbroken { BOOL jailbroken = NO; NSString *cydiaPath = @"/Applications/Cydia.app&qu ...

  4. How to determine ios Type of equipment (iphone,ipod,ipad)

    Function function : -(bool)checkDevice:(NSString*)name { NSString* deviceType = [UIDevice currentDevice].model; NS ...

  5. html5 High definition screen image processing

    1. srcset grammar : Add... To the element srcset attribute .srcset The value of is a comma separated list . Each item in the list contains the path of a picture and is multiplied by ( for example ,1x,2x,3x...) Provide multiple resolution images Reference resources :h ...

  6. cocos2d-x 2.0.3 Notes for setting HD mode ( Removed -hd The way )

    Monkey original , Welcome to reprint . Reprint please indicate : Reprinted from Cocos2D Development Network –Cocos2Dev.com, thank you ! Original address : http://www.cocos2dev.com/?p=304 stay cocos2d-x 2. ...

  7. iOS Development : Draw pixels to screen

    Reprint :https://segmentfault.com/a/1190000000390012 Translation notes : Although this article is relatively long , But the content is still valuable . How pixels are drawn on the screen ? Output data to the side of the screen ...

  8. IOS Multiple UIImageView Memory management when loading large HD images

    IOS Multiple UIImageView Memory management when loading large HD images Time :2014-08-27 10:47   Browse :59 people When we are in a certain place View Multiple UIImageView, And UIImageView They all show ...

  9. iOS Animation is not mysterious at all ———— You like to see slides ? Or watch high-definition movies ?

    iOS The average online hardware ratio of the device is andorid The equipment is much better , Especially memory and CPU, therefore iOS There are a lot of interactive animation effects in the application , This is what every user is happy with , If each operation corresponds to a direct change in the interface , It became very stiff . you ...

Random recommendation

  1. IDEA+Tomcat+JRebel Thermal deployment 1

    Download the required resources : jrebel_6.4.2a  summary JRebel It's a J2EE Hot deployment tools . Using it can reduce waste 8-18% Most of the development time is in the construction and deployment of the project . I've only heard of it before , There has been no practice , I actually used one today ...

  2. Swift_UI_UILabel

    Swift_UI_UILabel import UIKit class ViewController: UIViewController { override func viewDidLoad() { ...

  3. LoadRunner - When DiscuzNT I met Loadrunner( Next ) ( forward )

    When DiscuzNT I met Loadrunner( Next ) In the previous two articles , It basically describes how to record scripts and generate concurrent users , At the same time, a few charts in the test report are simply explained . Today's article is the last in this series , Will introduce ...

  4. zabbix Summary of SMS Gateway call problems

    When writing to call SMS Gateway shell Script time , I found a problem I couldn't think of , Using browser to access SMS interface address can successfully receive SMS . But in shell There is an error in the call !!! In repeated tests, it was found that , stay shell Special words in Chinese ...

  5. Android How to put a RelativeLayout or ImageView The background is set to transparent

    In the project , Need to put RelativeLayout and  ImageView The background is set to transparent , How to achieve it ? This is mainly through the code , See the key code below : public ImageView imgDetail; pri ...

  6. Light oj 1030 probability DP

    D - Discovering Gold Crawling in process... Crawling failed Time Limit:2000MS     Memory Limit:32768 ...

  7. PHP return JSON and XML class

    <?php class Reponse{ //private $result = array('code'=null,'message'=null,'data'=>null); /** * ...

  8. jquery Selectors children And find

    children() and find() Two for traversing down DOM Treelike jQuery Method children() Method returns all direct child elements of the selected element . find() Method returns the descendant element of the selected element , All the way down to ...

  9. javascript Delay execution function

    Delay execution function , It seems to be unnecessary ,  Maybe it works   Here it is var test = { delay : function(lifetime){ var data; setTimeout(function ...

  10. by bootstrap+angularJs Create a table code generator

    private void btnCreateCode_Click(object sender, EventArgs e) { string objName = txtObjName.Text; if ...