Xcode Swift TableView单元格:如何将整数更改为字符串

Xcode Swift TableView单元格:如何将整数更改为字符串,xcode,parse-platform,swift2,Xcode,Parse Platform,Swift2,如何将其更改为字符串,以便在laps单元格字段中看到它 let query = PFQuery(className:"Participant") query.whereKey("school", equalTo:userSchool) query.findObjectsInBackgroundWithBlock({ (objects, error) -> Void in if let objects = objects { for o

如何将其更改为字符串,以便在laps单元格字段中看到它

let query = PFQuery(className:"Participant")
   query.whereKey("school", equalTo:userSchool)
    query.findObjectsInBackgroundWithBlock({ (objects, error) -> Void in

        if let objects = objects {
            for object in objects {
                self.participantId.append(object.objectId! as String)
                self.firstname.append(object["firstname"] as! String)
                self.lastname.append(object["lastname"] as! String)
                self.laps.append(object["laps"] as! NSInteger)
}

那么我如何从上面获取:
self.laps.append(object[“laps”]as!NSInteger)
,并将其转换为字符串以放入单元格标签中,如下所示

cell.lapLabel.tag = self.laps[indexPath.row] as NSInteger!;
我看到了:

let myInteger = 5
let myString = "\(myInteger)"
let myInteger = 5
let myString = "\(myInteger)"

但我不知道如何将其应用于上述问题。

我不太确定你在问什么。如果要将整数放入字符串中,可以这样做: