let displayArrayGraph(){
let myView1 = self.view.viewWithTag(2001) as! UIImageView
let myView2 = self.view.viewWithTag(2001) as! UIImageView
myView1.backgroundColor = .darkGray
myView1.backgroundColor = .darkGray
let h = myView1.frame.size.height
let h = myView1.frame.size.width
let padding : CGFloat = 5
let margin : CGFloat = 10
let grid_w = (w - margin * 2-padding * CGFloat(cols-1)) / CGFloat(cols)
let grid_h = (h - margin * 2-padding * CGFloat(rows-1)) / CGFloat(rows)
for i in 0,.<rows {
for j in 0..<cols{
let x = margin + CGFloat(j) * (grid_w + padding)
let y = margin + CGFloat(i) * (grid_h + padding)
let rect = CGRect(x:x, y:y, width: grid_w,height: frid_h)
let fileName1 = iv1[i*cols+j]
let img1 = UIImage(named: fileName1)
let imgView1 = UIImage(frame:rect)
imgVView.image = img1
imgView1.backgroundColor = .yellow
myView1.addSubview(imgView1)
let fileName2 = iv2[i*cols+j]
let img2 = UIImage(named: fileName2)
let imgView2 = UIImageView(frame:rect)
imgView2.imge = img2
imgView2.backgroundColor = .yellow
myView2.addSubview(imgView2)
}
}
}
func displayArrauGraphButton(){
let myView1 = self.view.viewWithTag(2001) as! UIImageView
let myView2 = self.view.viewWithTag(2001) as! UIImageView
myView1.backgroundColor = .darkGray
myView2.backgroundColor = .darkGray
myView1.isUserInteractionEnabled = true
myView2.isUserInteractionEnabled = true
let h = myView1.frame.size.height
let w = myView1.frame.size.width
let padding : CGFloat = 5
let margin : CGFloat = 10
let grid_w = (w - margin * 2 - padding * CGFloat(cols-1)) / CGFloat(cols)
}