Questions tagged [haneke]

Haneke is a lightweight image cache for iOS.

Haneke is a lightweight image cache for . Two versions exist, one written in , and one written in .

References:

47 questions
13
votes
5 answers

Swift: load images Async in UITableViewCell

I have a tableview that I created with code (without storyboard): class MSContentVerticalList: MSContent,UITableViewDelegate,UITableViewDataSource { var tblView:UITableView! var dataSource:[MSC_VCItem]=[] init(Frame: CGRect,DataSource:[MSC_VCItem])…
Imran Sh
  • 1,623
  • 4
  • 27
  • 50
13
votes
2 answers

Carthage errors "No tagged versions found for github"

I want to use Carthage in my projects, so I installed Carthage. I prepared a Cartfile in the project's root folder. When I typed the carthage update command in the terminal, I got this error: *** Cloning HanekeSwift No tagged versions found for…
marmaralone
  • 516
  • 6
  • 11
6
votes
1 answer

SDWebimage vs HanekeSwift's

There are many caching libraries available in iOS. The most popular library is SDWebImage for caching images. There is one image cache library is HanekeSwift’s for image cache. My question is What is main difference between SDWebImage and…
Donal
  • 6,082
  • 2
  • 19
  • 30
5
votes
1 answer

Do I need cache if using CoreData

First of all I'm new in ios/swift... I need to have offline mode of my app. I'm using Alamofire for all networking getting json, convert to objects and save into the DB (Core-Data). Wanted to know do I need to have additional cache in between (like:…
mihatel
  • 846
  • 14
  • 34
4
votes
1 answer

Swift - UITableView - Incorrect images load when scrolling fast

I'm using the Haneke library to download, load & cache images. This works great, except when scrolling too fast, it loads the incorrect image, or sometimes no image at all. It is scrolling faster than it can download in the background, so whatever…
Matthew White
  • 199
  • 3
  • 11
4
votes
0 answers

Cache Alamofire JSON using Haneke

I am using Alamofire to perform all network API calls to get a bunch of different JSON files (depending on the view the user is on). Some of the JSON gets user profile details, some user settings, some data for a tableview. I am using the below let…
puks1978
  • 3,667
  • 11
  • 44
  • 103
3
votes
2 answers

HanekeSwift unable to allocate memory

I'm fetching about 136 images, each one about 500 KB, in order to have them cached on the disk. After downloading image #98, I start getting the following error for the images left (which makes me think they aren't getting cached). 2015-07-29…
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
2
votes
0 answers

ios - All image views with Haneke are flickering on reload data

I am using Haneke to handle images (cache, async download, etc...). So every time I call a reload data on my collection, all images become flickering. Is this a Haneke problem? Am I doing something wrong? This is the piece of code on my cellForItem…
Renan Geraldo
  • 605
  • 1
  • 6
  • 17
2
votes
4 answers

Swift: Retrieve value from asynchronous call before view appears

I'm using HanekeSwift to retrieve cached data and then set it to labels in a swipeView every time the view appears. My code retrieves the data no problem, but because cache.fetch() is asynchronous, when I call my method to update the view, my labels…
2
votes
0 answers

Using Haneke to cache then play MP4 files with AVPlayer

I'm looking for some help solving what seems like a simple problem, but I just can't seem to figure it out. I'm using Haneke from Cocoapods to cache MP4 files from URL (on my server) and then play the cached version using AVPlayer. I'm setting up an…
2
votes
0 answers

Swift Haneke only caching images from the first three rows of UITableView

In my TableViewCell I am using this method to retrieve URLS from my server, then I create a thumbnail image a video, finally inserting it into an UIImageView. var URL: String? { didSet { if gotThumb == false { …
bobawgg
  • 107
  • 5
2
votes
0 answers

Setting value and key for Haneke Shared.JSONCache is throwing an error

I'm trying to cache json I get back from a service using HanekeSwift but I get a syntax error saying "Cannot invoke 'set' with an argument list of type '(value: JSON, key:String, formatName: String, success: (_) -> _)'" Here is my code for setting…
jonv562
  • 293
  • 1
  • 4
  • 23
1
vote
0 answers

AVPlayer not starting until cell is recycled

I have a UITableView that I am using to render out tweets that contain gifs. These are returned from Twitter as MP4's so I am using AVPlayer. Using HanekeSwift I am caching the item and then playing it in the tableview. The issue I am having is that…
Tim J
  • 1,211
  • 1
  • 14
  • 31
1
vote
1 answer

How to clear Haneke memory cache effectively on iOS?

Main memory cache is bloating as user requests more number of images. As user session progresses, main memory size increases which applies excess pressure on memory. This is causing out of memory exception.
Vinay Bagale
  • 2,361
  • 4
  • 36
  • 45
1
vote
1 answer

What's the Swift 3 enumerateContentsOfDirectoryAtPath Syntax? (Haneke)

I'm converting the Haneke Cacheing framework to Swift 3 and I've run into a snag with enumerateContentsOfDirectoryAtPath. Here's the original syntax (view on github), let fileManager = NSFileManager.defaultManager() let cachePath =…
Dan Beaulieu
  • 19,406
  • 19
  • 101
  • 135
1
2 3 4