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
1
vote
1 answer

How to delete cache using HanekeSwift Swift?

I am stuck with a problem. I want to populate a tableview with some text and a profile image that can change i use this function for it. func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { …
Cees
  • 415
  • 2
  • 16
1
vote
0 answers

Swift - Image Download issue

Good morning ! I have a design question regarding pictures downloading and constraints. I currently use Haneke to download my images in the background. It is working like a charm but I have a lots of different image size format I can have (I display…
julien
  • 313
  • 1
  • 4
  • 16
1
vote
0 answers

Video file is not ready when it's time to play it

New in ios, using Swift 2.0, I have video file in Amazon S3, I use HanekeSwift for download and "cache" that video file and then play it, the issue is that when I play the video, the file written by hakene it isn't yet available, so nothing plays…
user2976753
  • 935
  • 11
  • 24
1
vote
0 answers

Use of unresolved identifier 'Shared' at Haneke framework

I imported the Haneke framework at my Swift project. When I trying to run app at iPad, it builds, and all is working wonderfull, but when I trying to run app at simulator, I get an error: error I can't use functions from framework.. Why?
Dima
  • 11
  • 1
1
vote
1 answer

hanekeswift remove image from all FormatName

using Haneke Swift when I set an image to an UIImageView (scaled) with the .hnk_setImageFromUrl extension function, how can I remove this again from the Cache. I've tried: profileImageView.hnk_setImageFromURL(NSURL(string:…
schmichri
  • 514
  • 5
  • 13
1
vote
0 answers

Getting and setting JSON data in cache with Haneke Swift & SwiftyJSON

I'm currently struggling with trying to cache data and retrieve data which is being parsed using SwiftyJSON. For the first method I'm trying to cache the data using the following function Cache function: func cacheStory(data: SwiftyJSON.JSON){ …
Tunds
  • 1,804
  • 2
  • 15
  • 30
1
vote
2 answers

Haneke - hnk_setImageFromURL

I tried hnk_setImageFromURL but it says "Value of type 'UIImageView' has no member 'hnk_setImageFromURL'. I have imported the Haneke.xcodeproj manually. On top of the class there is 'import Haneke'.
1
vote
0 answers

Haneke set Button Image in UITableView

I got a button named "avatarImage" that should display the user's avatar tried this: func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { //do other cell stuff.... //does not present…
longbow
  • 1,593
  • 1
  • 16
  • 39
1
vote
1 answer

How to return values from Haneke's async fetch method

I'm trying to parse some data that I cached using Haneke Swift. I've cached the data and have written the parser to accomplish this. This parser is in a separate class called AssembleCalendar(). Using Haneke's example code for fetching, I've tried…
Dan Beaulieu
  • 19,406
  • 19
  • 101
  • 135
1
vote
3 answers

UITableViewCell images are resized when scrolling

I used HanekeSwift to set the images in my UITableViewCell in cellForRowAtIndexPath. My code below works but the images are resized when I start scrolling through the list. How can I prevent the images from resizing? //Load pet image var petImage :…
Esthon Wood
  • 315
  • 3
  • 19
1
vote
1 answer

Is there a way to prefetch images via Haneke?

In SDWebImage it is possible to prefetch (early loading) images upfront like this: [[SDWebImagePrefetcher sharedImagePrefetcher] prefetchURLs:]; Is there a way to achieve the same with Haneke, please? It seems there is a…
Houman
  • 64,245
  • 87
  • 278
  • 460
1
vote
1 answer

Swift Haneke: cache doesn't resolve

I'm trying to pre-load some images with the following code: let thumbnailUrl = NSURL(string: urlString) let fetcher = NetworkFetcher(URL: thumbnailUrl) Shared.imageCache.fetch(fetcher) { println("Finished") } But afterwards when I try…
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
0
votes
3 answers

Swift 5 : Create JSON with Codable / Struct from my variables

I would like to create a Codable structure to save data from a user profile Let's say the ios user filled a form with his name, last name,adress, put his picture (UIImage)) and that user have an unique ID . My JSON would be like {"Unique_ID"…
Victor
  • 61
  • 1
  • 13
0
votes
1 answer

Image in cell doesn't appear in search result

I have collection view and have 7 cell. When app running, it display 6 and must scroll to view the 7th cell. Each cell has an image but the 7th cell image didn't show until I scroll and view the 7th cell. It make if i search the 7th cell, the image…
Ariel Gemilang
  • 796
  • 2
  • 20
  • 42
0
votes
0 answers

Haneke(Swift) cached images out of order

I have developed a menu interface that has 3 rows of hexagons that load dynamically and allow the user to choose among different services belonging to the same category. I have then called my API end-point to obtain the JSON response with the…