我想在我的项目中使用Carthage,所以我安装了Carthage.我在项目的根文件夹中准备了一个Cartfile.当我carthage update在终端中键入命令时,出现此错误:
***克隆HanekeSwift
没有找到标记为github"Haneke/HanekeSwift"的版本
Cartfile文件包含以下行:
github "Alamofire/Alamofire" >= 1.2
github "Haneke/HanekeSwift"
Run Code Online (Sandbox Code Playgroud)
为什么我收到此错误?
我有一个tableview用代码创建的(没有storyboard):
class MSContentVerticalList: MSContent,UITableViewDelegate,UITableViewDataSource {
var tblView:UITableView!
var dataSource:[MSC_VCItem]=[]
init(Frame: CGRect,DataSource:[MSC_VCItem]) {
super.init(frame: Frame)
self.dataSource = DataSource
tblView = UITableView(frame: Frame, style: .Plain)
tblView.delegate = self
tblView.dataSource = self
self.addSubview(tblView)
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return dataSource.count
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = UITableViewCell(style: .Subtitle, reuseIdentifier: nil)
let record = dataSource[indexPath.row]
cell.textLabel!.text = record.Title
cell.imageView!.downloadFrom(link: record.Icon, contentMode: UIViewContentMode.ScaleAspectFit)
cell.imageView!.frame = CGRect(x: 0, y: 0, …Run Code Online (Sandbox Code Playgroud) iOS中有许多缓存库.最受欢迎的库是用于缓存图像的SDWebImage.有一个图像缓存库是HanekeSwift的图像缓存.
我的问题是SDWebImage和HanekeSwift之间的主要区别是什么?在哪种情况下我们使用SDWebImage或HanekeSwift?
haneke ×4
swift ×3
ios ×2
alamofire ×1
caching ×1
carthage ×1
core-data ×1
sdwebimage ×1
uitableview ×1
xcode ×1