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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -