首页 > 解决方案 > 我有一个代码,我需要在每个图像之间添加垂直和水平线

问题描述

我有这样的代码,我需要在图像之间插入垂直和水平线

self.searchBR.returnKeyType = UIReturnKeyType.default
        self.title = (UserDefaults.standard.value(forKey: "selctedCity") as! String)

        mainCollectionImgArray = ["headset.png","achievement.png","car.png",
                                  "configuration-gear.png","Cleaning.png",
                                  "portfolio.png","vaccine.png","book.png","Sports.png","Food.png","Events.png","Arts&Entertainment.png","Health&Beauty.png","Clothes&Accessories.png","Baby.png","Toys.png","Electronics.png","RealEstate.png","Furniture.png","Travel.png","Pets.png","Manufactures.png","Used&Rentals.png"]
        self.loadCategoryData()
        self.loadSubcategoriesData()
        self.loadSuperSubCategories()

        self.mainCollectionView.reloadData()
        topCollectionView.reloadData()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


    @IBAction func locationButtonTapped(_ sender: Any) {
        let LocationViewController = self.storyboard?.instantiateViewController(withIdentifier: "ViewController")
        self.navigationController?.pushViewController(LocationViewController!, animated: true)
    }

我想在图像之间添加垂直和水平线,请有人帮助我

标签: ios

解决方案


推荐阅读