iphone - TableViewCell Alignment Issue -


i want align tableviewcell content below screenshot enter image description here

but alignment below only.. enter image description here

please 1 me do.. enter image description here

enter image description here

enter image description here

here code top aligning of label text. unfortunately there no directly method vertical alignment got uilabel.

//code top aligning text of uilabel         cgsize maximumsize = cgsizemake(290, 35);          nsstring *datestring =[[[reviewdic valueforkey:@"reviews"] objectatindex:[indexpath row]] objectforkey:@"summary"];         uifont *datefont = [uifont fontwithname:@"helvetica" size:14];         cgsize datestringsize = [datestring sizewithfont:datefont constrainedtosize:maximumsize linebreakmode:reviewlabel.linebreakmode];          cgrect dateframe = cgrectmake(5, 17, 290, datestringsize.height);          reviewlabel.frame = dateframe; 

***reviewlabel repalced label , have make adjustments according need. hope help


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -