Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

geiger10d

macrumors member
Original poster
hey guys, i changed my table view around so its from a dictionary now so that i can add a add button to it, but i was just wondering why when i click on a cell before this view that comes to this one, nothing shows up in the cell its just three or four blank cells


Code:
- (void)viewWillAppear:(BOOL)animated {
	[super viewWillAppear:animated];
	
	for (NSUInteger row = 0; row < [cellTitles count]; row++) {
		NSMutableArray *tempTitleArray = [NSMutableArray array];
		NSMutableArray *tempDescriptionArray = [NSMutableArray array];
		
		if ([[cellTitles objectAtIndex:row] isEqualToString:@"Cdfsdfsdfrkfdfouts"]) {
					
			[tempTitleArray addObject:@"blahss"];
			[tempDescriptionArray addObject:@"Alsoasfoulders s"];
					
			[tempTitleArray addObject:@"afasfa(Common)"];
			[tempDescriptionArray addObject:@"Alsasfaiceps "];

			[tempTitleArray addObject:@"afsfdfs"];
			[tempDescriptionArray addObject:@"nest"];
			
			[tempTitleArray addObject:@"Dsdfsdfssips"];
			[tempDescriptionArray addObject:@"bldfah"];
 
Last edited by a moderator:
this isn't the code from ur cell's.
And u say u click before the view loads, how does the "view" knows what to implement. Not really getting the problem..
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.