uicollectionview - Implementing UICollectionViewDelegate with RA Signals -


i'm trying add signal implement events of uicollectionviewdelegate protocol, signals never fired, tried resetting delegate object after i've created signal, ideas why not working?

  self.answerselectionsignal = [self.collectionview rac_signalforselector:@selector(collectionview:didselectitematindexpath:) fromprotocol:@protocol(uicollectionviewdelegate)]; [self.answerselectionsignal     subscribenext:^(ractuple *tuple) {       self.actionbutton.enabled = yes;     }];  self.collectionview.delegate = nil; self.collectionview.delegate = self; 

thanks

found problem, selector implemented view controller, in case "self", trying signal collectionview doesn't make sense.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -