小编Car*_*rol的帖子

TableViewCell重叠文本

我的TableViewCell有问题

我的故事板中有两种类型的单元格.当我滚动时,文本在某些单元格中重叠.我尝试了一切,但我不知道该怎么办.非常感谢你的帮助

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

        var storeNew = systemsBlog.getStore(listNews[indexPath.row].getIdStore())
        var newNotice = listNews[indexPath.row]

        let cell = tableView.dequeueReusableCellWithIdentifier("TimelineCell", forIndexPath: indexPath) as? TimelineCell

                cell!.nameLabel.text = storeNew.getName()
                cell!.postLabel?.text = newNotice.getText()
                cell!.postLabel?.numberOfLines = 0
                cell!.dateLabel.text = newNotice.getDate()
                cell!.typeImageView?.tag = indexPath.row;
                return cell!
}



class TimelineCell : UITableViewCell {

    @IBOutlet var nameLabel : UILabel!
    @IBOutlet var postLabel : UILabel?
    @IBOutlet var dateLabel : UILabel!

    override func awakeFromNib() {
     postLabel?.font = UIFont(name: "Roboto-Thin", size: 14)
    }

    override func layoutSubviews() …
Run Code Online (Sandbox Code Playgroud)

xcode overlap uitableview ios swift

7
推荐指数
1
解决办法
2090
查看次数

阿波罗与redux-persist

我集成了react-apollo,用于将我的GraphQL服务器中的数据提取到我的react本机应用程序中.我使用redux-perist来持久化和再水化redux商店.

但我不知道如何补充我的阿波罗州.

谁知道我怎么能这样做?

谢谢

apollo react-native react-redux react-apollo

5
推荐指数
1
解决办法
917
查看次数