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
0
votes
1 answer

Combatipility issues with Swift 3 and Cocoapods packages

I am stuck after updating xCode to version 8 with my already existing apps. I used the following pods: Alamofire SwiftyJSON HanekeSwift PagedHorizontalView Intercom I need help updating the Podfile so it will install Swift 3 compatible version of…
Hamid
  • 289
  • 1
  • 5
  • 12
0
votes
1 answer

Loading and caching multiple UIImageView in a tableview cell not working

I have a custom table view cell with 3 UIImageView. I load and cache them asynchroneously with Haneke. When I scroll back up, some of the previoulsy seen images disappear randomly. This is really strange. Why is this happening ? I have tried…
AlexB
  • 3,518
  • 4
  • 29
  • 46
0
votes
0 answers

Handling HanekeSwift failure

I'm using HanekeSwift in order to fetch data stored in cache, when no internet connection is available for my app to call some remote APIs, but I have no properly clear how it works. I implemented the following function in order to perform this…
giograno
  • 1,749
  • 3
  • 18
  • 30
0
votes
0 answers

Using Haneke Objective-C Library in Swift File

Hey guys I've been having a hell of a time getting HanekeSwift into my swift app. I have just been getting errors that make no sense and all of the solutions I've found online don't work for me so I've decided to implement the Haneke Objective C…
user3459799
  • 345
  • 6
  • 16
0
votes
1 answer

Cache image and show them using Haneke

I'm trying to cache (Haneke) an image and show it but i can't seem to figure out the first UIImage parameter in the hnk_setImage. How can i show the image from the logoCache key? Cache Image cache.set(value: logoData, key: logoCache) Fetch and Show…
Peter Pik
  • 11,023
  • 19
  • 84
  • 142
0
votes
1 answer

Not able to remove image cache entry using HanekeSwift

I am using HanekeSwift to download an image from URL and set it in the UIImage. I am doing it like .hnk_setImageFromURL() The image URL gets updated with new image frequently and I need to download the new image. But as the image is already…
Jithesh
  • 51
  • 5
0
votes
1 answer

With HanekeSwift, will network requests be cancelled automatically for off-screen cells?

When using HanekeSwift with a table view, I can simply show an image inside a cell with: cell.image.hnk_setImageFromURL(url!) without any further control. If I scroll the table view quickly, some cells will go off the screen without showing their…
Joe Huang
  • 6,296
  • 7
  • 48
  • 81
0
votes
1 answer

Haneke crashing SwiftyJSON's 'JSON?' type

I have a TableViewCell that works just fine. However as soon as I import Haneke, I receive error on var post: JSON? {.. : 'JSON' is ambigious for type lookup in this context import UIKit import SwiftyJSON // import Haneke class…
senty
  • 12,385
  • 28
  • 130
  • 260
0
votes
1 answer

Dynamic cell height with async images in Swift 2

I'm trying to build a Facebook-like feed. I'm using a standard Tableview with autolayout constraints set up in storyboard. The width should be 100% of the viewport and the height according to the aspect ratio of the image. I'm using Haneke's…
Shahar
  • 478
  • 5
  • 17
0
votes
1 answer

Haneke not working with AWS SDK using Swift

I am trying to integration with AWS SDK but the image is not showing up. func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell { let cell =…
Nurdin
  • 23,382
  • 43
  • 130
  • 308
0
votes
1 answer

swift: add Haneke.framework to xcode 7.0.1 not work

I'm beginner in xcode and swift, So I'm try to add Haneke framework to my project. I do these steps: Drag Haneke.xcodeproj to your project in the Project Navigator. Select your project and then your app target. Open the Build Phases panel. Expand…
Imran Sh
  • 1,623
  • 4
  • 27
  • 50
0
votes
3 answers

Swift Haneke: Json Data in TextView

I used the Haneke Framework to get Data from a Site. With the Haneke Framework i also can get Images from a site, and these Images i can present on a UIImageView. Now i wanted to get some text from a site. I did it like this: cache.fetch(URL:…
iOS Koray
  • 41
  • 1
  • 9
0
votes
1 answer

iOS Haneke - memory warning then crash

I am developing an app that fetches images from Twitter using the Haneke library. Once I get the images, I display them using a UITableView. I fetch 10 pictures at a time. My app loads but quickly crashes due to a memory leak. The code I am using…
srm
  • 655
  • 1
  • 8
  • 21
0
votes
1 answer

Haneke in Swift: Eagerly loading images

Is there a way to load an image from an URL and write it directly to the disk cache (without presenting them to an UIImageView), so that I can emulate eager loading? Problems emanate from the need to present 100+ images 4MB each (can't resize them…
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
0
votes
2 answers

Ios swift haneke EXC_BAD_ACCESS

Sometimes I get this error with Haneke library and Swift. Here is a screenshot of the error: This doesn't happen every time I open the app.
Mirza Delic
  • 4,119
  • 12
  • 55
  • 86