SyntaxFix
Write A Post
Hire A Developer
Questions
u can use this code
var imageView = UIImageView(image: UIImage(name:"imageName")); imageView.frame = CGrectMake(x,y imageView.frame.width*0.2,50);
or
var imageView = UIImageView(frame:CGrectMake(x,y, self.view.frame.size.width *0.2, 50)