AliSoftware / AliSoftware/OHAttributedLabel

Unable to use OHAttributedLabel in Custom table view cell label

Aperta
#156 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Question
Lingua principale
Objective-C
Stelle
1.5k
Fork
341
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I do have custom cell having UILabels one for text and second for translation. I want to assign attributed text to that translation label without allocating in cellForRowAtindexPath. Is there any option to do some thing like this
# import

#import

@interface SelectedSurahCell : UITableViewCell
@property (strong, nonatomic) IBOutlet OHAttributedLabel *aayat;
@property (strong, nonatomic) IBOutlet UILabel *translation;

@end

and table view controller I want to do

cell.aayat = (OHAttributedLabel*)[cell.aayat viewWithTag:kAttributedLabelTag];
cell.aayat.frame = CGRectMake(0, 0, 275, height);
[cell.aayat setAttributedText: [ self AttributedString: ayatText ] ];

its doesn't set text to custom cell

Please give me any suggestion. Thanks in advance

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.