Swiftで空のimageViewをadd
//空のImageViewを貼る var frame = CGRectMake(0,0,1000,1000) UIGraphicsBeginImageContext(frame.size) var context = UIGraphicsGetCurrentContext(); CGContextSetFillColorWithColor(context,UIColor.whiteColor().CGColor); let uiImage:UIImage = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() self.imageView = UIImageView(image:uiImage) self.baseUiView.addSubview(self.imageView)