I have parentView rect of 1000x700 and i'm displaying the UIImageView in the rect of 350x199. But i need to displays the UIImageView aspect ratio of parentView.I referred here Resize UIImage with aspect ratio?. But how can i use this with my code
mmageView=[[UIImageView alloc]initWithFrame:CGRectMake(200,200,350,199)];
[self.view addSubview:mmageView];