I want to set the width and height of frame programmatically which should vary with the type of Phone like for iphone5 i have made following settings
_splashView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];
But if i install the app in iphone6 the splashview does not fit properly. so i want to set the values of width and height programmatically so that it can be used with any type of phone.
something like:
_splashView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, width, height)];