Sunday, January 16, 2011

Avoid shuffling of data in UITABLE Section view

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

NSString *CellIdentifier=nil ;


NSMutableArray *Array= [[[NSMutableArray alloc] initWithObjects: @"One",@"Two", @"Three",@"Ad",@"Ae",@"Ah",@"Aj" ,nil]autorelease];



CellIdentifier = [Array objectAtIndex:indexPath.section];




///302-1021-9244-4658-1994-3384

UITableViewCell * cell = [tabelView dequeueReusableCellWithIdentifier:CellIdentifier];

//number++;
// NSLog(@" NUMBER IS %d",number);
// if (cell != nil)
//if(number==1);
{
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
// // Set up the cell








appDelegate = (DatabaseTestAppDelegate *)[[UIApplication sharedApplication] delegate];
switch(indexPath.section)
{
}


}

No comments:

FEEDJIT Live