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
Post a Comment