我正在尝试减少ios的opencv2.framework大小.我的项目只使用core,imgproc和highgui模块.如何只使用那些模块进行编译?还是有减少尺寸的替代方案?
谢谢.
问题出在我的项目中。但是我也在新的xcode草案项目中尝试了Master-Detail Application。
我创建了基本Cell类,并将该单元映射到情节提要上。删除操作后,不会调用deinit。没有关于单元格的强项或弱项。
class Cell:UITableViewCell {
deinit{
print("Deinit Called")
}
}
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! Cell
let object = objects[indexPath.row] as! NSDate
cell.textLabel!.text = object.description
return cell
}
Run Code Online (Sandbox Code Playgroud)