guowilling / SRCarouselView

A carousel view that only uses two UIImageView to achieve infinite carousel.
MIT License
56 stars 11 forks source link

initiating from delegate callback #1

Open nelzaatari opened 7 years ago

nelzaatari commented 7 years ago

hello,

initiating from the delegate callback displays nothing, could you take a look into that ?

thank you

guowilling commented 7 years ago

sorry, i do not know what problem you have meet. you can use it according to the demo code, if still not work, please let me know.

guowilling commented 7 years ago

I'm rewriting code to separate the download and cache image's code into a separate class, you'll see it soon.

nelzaatari commented 7 years ago

hello,

in my app there is a protocol

@protocol HttpClientDelegate

but calling it in the viewDidLoad() directly works perfectly,,

this is the issue im currenly facing

thank you

guowilling commented 7 years ago

does this delegate method called in main queue? you try this

dispatch_async(dispatch_get_main_queue(), ^{        
         //settting the images array for SRInfiniteCarouselView
 });

to see if it works fine.

nelzaatari commented 7 years ago

im getting nothing even after i add your code, look at the screenshot

simulator screen shot jan 10 2017 6 26 14 pm

guowilling commented 7 years ago

Sorry i was busy with something, Have your problem solved?

nelzaatari commented 7 years ago

np, nope still