AliSoftware / AliSoftware/OHAttributedLabel

Unable to use OHAttributedLabel in Custom table view cell label

Aberta
#156 1 comentário 0 reações 0 responsáveis Ver no GitHub
Question
Linguagem predominante
Objective-C
Estrelas
1.5k
Forks
341
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.