类似qq聊天的效果。每发一条信息,tablevIEw更新cell并且显示最后一个cell
func tableVIEw(tableVIEw: UItableVIEw,cellForRowAtIndexPath indexPath: NSIndexPath) -> UItableVIEwCell { let cell = tableVIEw.dequeueReusableCellWithIDentifIEr("cell") as! UItableVIEwCell var sectionCount:Int = self.tableVIEwMessInfo.numberOfSections() if(sectionCount != 0) { var rowCount = self.tableVIEwMessInfo.numberOfRowsInSection(0) if(rowCount != 0) { println("\\\\\\\\\") var ii = [0,rowCount - 1] var indexPath = NSIndexPath(indexes: ii,length: ii.count) self.tableVIEwMessInfo.scrollToRowAtIndexPath(indexPath,atScrollposition: UItableVIEwScrollposition.Bottom,animated: true) } } return cell }总结
以上是内存溢出为你收集整理的swift uitableview显示cell最后一列全部内容,希望文章能够帮你解决swift uitableview显示cell最后一列所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)