【发布时间】:2015-07-23 01:00:22
【问题描述】:
我想创建一个在UITableView 上弹出的子视图,其中包含cell 上的UIImageView 全屏图像,右上角有一个退出按钮和UITextView底部的cell 另一个cell 或UITextView
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier(reuseIdentifier, forIndexPath: indexPath) as! TalesTableViewCell let tapGesture = UITapGestureRecognizer(target: self, action: "imageTapped:")
cell.tableImage.addGestureRecognizer(tapGesture)
cell.tableImage.userInteractionEnabled = true
return cell
}
func imageTapped(gesture: UIGestureRecognizer) {
//Code here I think
}
有什么想法吗?谢谢!
【问题讨论】:
标签: ios xcode swift parse-platform