I am using Xcode. I have tested my code on iPad non retina device. That time I found the height and width of the view(self.view) as 1004 and 768. When I am testing on iPad retina simulator it's showing the same height and width(1004,768) rather than 2008 and 1536.