iphone - Populate TableView With The Use of PopOverController - Objective C -


possible duplicate:
unable populate tableview in popovercontroller - objective c

i using button called "button". on clicking want display contents present in kkkk array in tableview of popovercontroller i.e. want small tableview pop cells show contents of kkkk array.

i using following lines of code ::

table = [[uitableviewcontroller alloc]init];  popover2 = [[uipopovercontroller alloc] initwithcontentviewcontroller:table];//tell view controller should shown  [popover2 setpopovercontentsize:cgsizemake(200, 200)]; // set content size of popover [popover2 presentpopoverfrombarbuttonitem:uploadspace permittedarrowdirections:uipopoverarrowdirectionany animated:yes]; //from should "pop"  self.popovercontroller = popover2;           popovercontroller.delegate = self;  nsstring *hhdir = [nshomedirectory() stringbyappendingpathcomponent:@"documents"]; nsstring *hhfilepath = [hisdir stringbyappendingpathcomponent:@"hh.txt"];  nsarray *array = [nsarray arraywithcontentsoffile:hhfilepath ]; kkkk = [[nsmutablearray alloc] init]; (nsdictionary *dict in array) {     [keys addobjectsfromarray:[dict allkkkk]];      // nslog(@"%@ hellooooooooo", [kkkk objectatindex:0]);  } nslog(@"hiiiiiii"); nslog(@"%@", [kkkk objectatindex:0]); table.tableview.delegate=self; table.tableview.delegate = self;   table.tableview = [[uitableview alloc] initwithframe:[window bounds]]; // set image view , add view make hidden [window addsubview:table.tableview];  //table.hidden = yes; [window makekeyandvisible]; [self.table.tableview reloaddata]; 

here, tview uitableview , table uitableviewcontroller.

i able tableview pop on press of "button'. but, however, unable populate values of kkkk array. searched lot on google how populate tableview, display tableview use of popovercontroller different suppose.

can me sort out. , regards.

check out link below, may you.

http://www.raywenderlich.com/1056/ipad-for-iphone-developers-101-uipopovercontroller-tutorial


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -