uitableview - Table view with multiple columns in ios 4,5 and 6 -


i want create table view multiple columns, want display each student mark different subjects.

i googled didn't find exact solution of need. did find links broken. want tableview exact grid view i.e. columns separated lines. please give me idea.

  -(uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath   {   } 

what write in above method? want subview of main view controller.

i followed link: how display multiple columns in uitableview?

but new objective-c, please guide me how define custom cell in ib

thank you

i think need set tableview style this...

 cell = [[[uitableviewcell alloc] initwithstyle:uitableviewcellstylevalue1 reuseidentifier:cellid] autorelease]; 

there different styles available ...

  uitableviewcellstyledefault,  // simple cell text label , optional image view (behavior of uitableviewcell in iphoneos 2.x) uitableviewcellstylevalue1,     // left aligned label on left , right aligned label on right blue text (used in settings) uitableviewcellstylevalue2,     // right aligned label on left blue text , left aligned label on right (used in phone/contacts) uitableviewcellstylesubtitle    // left aligned label on top , left aligned label on bottom gray text (used in ipod). 

hope helps !

cheers !


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -