ios7 - get screen size for iphone 6 simulator incorrect -


i working on old iphone app, migrated ios 8. using

cgrect screenbounds = [[uiscreen mainscreen] applicationframe]; 

to screen size iphone 6 simulator returning 568x320 landscape mode.we have 3 launch images default, default - 568h , default. can please let me naming convention adding new launch image iphone 6.

below code may helpful you.

cgrect rect=[[uiscreen mainscreen] bounds]; 

it return proper size. , splash screen name :

iphone 4/4s : default@2x.png iphone 5/5s : default-568@2x.png iphone 6    : default-667h@2x.png iphone 6plus:default-736h@2x.png