Ipad tableview doubts -



Ipad tableview doubts -

i have problem code

scroll=[[uiscrollview alloc] initwithframe:cgrectmake(0, 0, 320, 460)]; scroll.backgroundcolor=[uicolor clearcolor]; scroll.pagingenabled=yes; scroll.contentsize = cgsizemake(320*5, 460); cgfloat x=0; for(int i=1;i<6;i++) { uitableview *table = [[uitableview alloc]initwithframe:cgrectmake(x+10, 10, 300, 440) style:uitableviewstylegrouped]; table.delegate=self; table.datasource=self; [scroll addsubview:table]; [table release]; x+=320; } [self.view addsubview:scroll]; scroll.showshorizontalscrollindicator=no; [scroll release];

this code pagination through scrollview tableview,but need set info in these 5 tableview cells create above.how set info through these tableviews.(data xml parsing)

thanks advance

you've correctly set self tableview's info source , delegate.

the table views inquire info , need implement uitableviewdatasource protocol.

each of methods reference table view that's asking information, can utilize figure out info provide (for of 5 table views).

you may want have @ table view programming guide.

ipad

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -