ios - Title Label not showing for UIButton -


i attempting set uibutton text through array so:

// set user name nsstring *user = entry[@"user"][@"full_name"]; [cell.namelabel.titlelabel settext:user]; 

however no text appears on application when loads. text being returned , stored in array. here customization of button:

// name self.namelabel = [[uibutton alloc] initwithframe:cgrectmake(58, 6, 192, 25)]; [self.namelabel.titlelabel setfont:[uifont fontwithname:@"helvetica-regular" size:12.0]]; self.namelabel.titlelabel.textcolor = [uicolor colorwithred:(38.0/255.0) green:(120.0/255.0) blue:(172.0/255.0) alpha:1.0]; [self.contentview addsubview:self.namelabel]; 

[self.namelabel settitle:user forstate:uicontrolstatenormal]; 

Comments