Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "QuestionTextCell.h"
- #import "RKKFormTextView.h"
- @interface QuestionTextCell ()
- @property (nonatomic, assign) IBOutlet RKKFormTextView *textView;
- @end
- @implementation QuestionTextCell
- - (void)setPlaying:(BOOL)play {
- self.textView.editable = (!play);
- }
- - (void)awakeFromNib {
- [super awakeFromNib];
- @weakify(self);
- [RACAble(self.question) subscribeNext:^(QuizQuestion *question) {
- @strongify(self);
- self.textView.text = question.text;
- [question rac_liftSelector:@selector(setText:) withObjects:self.textView.rac_textSignal, nil];
- }];
- }
- - (void)dealloc {
- self.textView.delegate = nil;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement