반응형

    struct InfoStruct {

        var NO: String

        var MenuItemName: String

        var MenuItemFamily: String

        var MenuImage: UIImage

        var PhoneNumber: String

    }


var InfoArray = [InfoStruct]()


InfoArray.append(InfoStruct(NO: user[no], MenuItemName: user[firstname], MenuItemFamily: user[lastname], MenuImage: user.get(userimage), PhoneNumber: user[phonenumber]))


//let indexNo = NO.indexOf(NumberID)

let indexNo = InfoArray.indexOf { $0.NO == NumberID}



self.InfoArray[indexNo!] = InfoStruct(NO: self.NumberID, MenuItemName: contact.givenName, MenuItemFamily: contact.familyName, MenuImage: userImage, PhoneNumber: telephone)


InfoArray[indexPath.row].MenuItemFamily

반응형

+ Recent posts