天天看點

cell代碼 右側 添加向右箭頭

override func tableView(tableView:UITableView, cellForRowAtIndexPath indexPath:NSIndexPath) -> UITableViewCell {

        let identity ="identityCell"

        let cell =UITableViewCell.init(style:UITableViewCellStyle.Default, reuseIdentifier: identity)

            cell.textLabel?.text =cellsValue[indexPath.row]

            cell.accessoryType =UITableViewCellAccessoryType.DisclosureIndicator//添加箭頭

            cell.selectionStyle =UITableViewCellSelectionStyle.None

        return cell

    }