Giter VIP home page Giter VIP logo

Comments (7)

aharbavets avatar aharbavets commented on June 27, 2024 5

+1 Swift is the future

from uiactivityindicator-for-sdwebimage.

dilizarov avatar dilizarov commented on June 27, 2024 1

@moyoteg I solved the issue by simply changing it from #import "UIImageView+WebCache.h" to #import <SDWebImage/UIImageView+WebCache.h>

#import <SDWebImage/UIImageView+WebCache.h>
#import <SDWebImage/SDImageCache.h>

Should do the trick.

from uiactivityindicator-for-sdwebimage.

desseim avatar desseim commented on June 27, 2024

By the way this edit in the SDWebImage recommendations seems to support the updating the import statements.

from uiactivityindicator-for-sdwebimage.

moyoteg avatar moyoteg commented on June 27, 2024

Any luck with this? =)

from uiactivityindicator-for-sdwebimage.

parthibl avatar parthibl commented on June 27, 2024

it works thank you! @dilizarov

from uiactivityindicator-for-sdwebimage.

Roshanzs avatar Roshanzs commented on June 27, 2024

good

from uiactivityindicator-for-sdwebimage.

dzpt avatar dzpt commented on June 27, 2024

I've done my fix like @dilizarov . however there is an error.

'-[UIImageView setImageWithURL:usingActivityIndicatorStyle:]: unrecognized selector sent to instance 0x7a98bb00'
*** First throw call stack:
(
    0   CoreFoundation                      0x0139aa14 __exceptionPreprocess + 180
    1   libobjc.A.dylib                     0x00711e02 objc_exception_throw + 50
    2   CoreFoundation                      0x013a3d63 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
    3   CoreFoundation                      0x012e16bd ___forwarding___ + 1037
    4   CoreFoundation                      0x012e128e _CF_forwarding_prep_0 + 14
    5   imeproject                    0x000837c4 _TFC16imeproject14ViewController14collectionViewfS0_FTCSo16UICollectionView22cellForItemAtIndexPathCSo11NSIndexPath_CSo20UICollectionViewCell + 3252
    6   imeproject                    0x00083919 _TToFC16imeproject14ViewController14collectionViewfS0_FTCSo16UICollectionView22cellForItemAtIndexPathCSo11NSIndexPath_CSo20UICollectionViewCell + 89
    7   UIKit                               0x02cbb236 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:] + 448
    8   UIKit                               0x02cbaf78 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 65
    9   UIKit                               0x02cbda6b -[UICollectionView _updateVisibleCellsNow:] + 5136
    10  UIKit                               0x02cc2be2 -[UICollectionView layoutSubviews] + 241
    11  UIKit                               0x02425008 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 810
    12  libobjc.A.dylib                     0x00726059 -[NSObject performSelector:withObject:] + 70
    13  QuartzCore                          0x0205d80a -[CALayer layoutSublayers] + 144
    14  QuartzCore                          0x020514ee _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 388
    15  QuartzCore                          0x02051352 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
    16  QuartzCore                          0x02043e8b _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 317
    17  QuartzCore                          0x02077e03 _ZN2CA11Transaction6commitEv + 561
    18  QuartzCore                          0x020786c4 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
    19  CoreFoundation                      0x012b3ffe __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
    20  CoreFoundation                      0x012b3f5e __CFRunLoopDoObservers + 398
    21  CoreFoundation                      0x012a9108 CFRunLoopRunSpecific + 504
    22  CoreFoundation                      0x012a8efb CFRunLoopRunInMode + 123
    23  UIKit                               0x02353206 -[UIApplication _run] + 540
    24  UIKit                               0x02358bfa UIApplicationMain + 160
    25  imeproject                    0x000b78bc main + 140
    26  libdyld.dylib                       0x04d60a21 start + 1
    27  ???                                 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

from uiactivityindicator-for-sdwebimage.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.