Wednesday, 29 May 2013

To get device screen width and height iOS




    CGRect screenRect=[[UIScreen mainScreen]bounds];
    CGSize size=screenRect.size;
    screenWidth=size.width;

    screenHeight=size.height;