开发者

how can I use UIImageView on full screen in UIViewController?

开发者 https://www.devze.com 2023-02-10 20:49 出处:网络
I am developing a software and in it I am making a new file, which is subclass of UIViewController, when I do use UIImageView, then there is little border remaining in it, what should I do so that my

I am developing a software and in it I am making a new file, which is subclass of UIViewController, when I do use UIImageView, then there is little border remaining in it, what should I do so that my image should cover all area around it,

my coding of UIImageView in ViewDidLoad is

UIImageView* vie开发者_运维问答w = [[UIImageView alloc] initWithImage: [UIImage imageNamed: @"frontnew.png"]];
view.frame = CGRectMake(0, 0, 320, 415);
[self.view addSubview:view];

now what should I do ???? If I increase height and width then it will increase from two sides, not all ???


you should set imageview property as scalltoFit May be it can help you

0

精彩评论

暂无评论...
验证码 换一张
取 消