开发者

how can I use UIImageView on full screen in UIViewController?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜