ios - UITableViewCell Font size does not change -


i have custom uitableviewcell being displayed in tableview. uitableviewcell generated nib file. uitableviewcell has uilabel in it.the code of given below.apparently have tried decrease font size fixed size , nothing seems work.here doing set font size.

in uitableviewcell (this .m file attached nib) here do

- (void)awakefromnib {     uifont *myfont = [ uifont fontwithname: @"arial" size: 4.0 ];         self.labelmylabel.font  = myfont; } 

this how tableview being created

- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {     static nsstring *transferidentifier = @"transfertableitem";      filetransfertablecell *cell = [tableview dequeuereusablecellwithidentifier:transferidentifier];      if (cell == nil)     {         nsarray *nib = [[nsbundle mainbundle] loadnibnamed:@"filecustomtablecell" owner:self options:nil];         cell = [nib objectatindex:0];     }      //set text in uitableviewcell here     cell.textlabel.text = [self.myarray objectatindex:indexpath.row];     return cell; } 

i appreciate if me figure out why textsize constant (i have decreased font size of label in uitableviewcell in interface builder) ?

the setting of label's font working. problem setting text of wrong label. saying:

cell.textlabel.text = [self.myarray objectatindex:indexpath.row]; 

that's wrong label. want set text of labelmylabel, not textlabel. 2 different labels.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -