Note that there are some explanatory texts on larger screens.

plurals
  1. POIn iOS 5 TableViewController is not scrolling and not calling didSelectRowAtIndexPath
    primarykey
    data
    text
    <p>i ve upgrated to iOS 5 with XCode 4.2 version. since i ve upgraded i'm not able to create proper workign table view controller. </p> <p>1) Table view is shown on the device, but when i try to scroll up, it crashes without any error message</p> <p>2) when i try to select a cell , didSelectRowAtIndexPath is not called. </p> <p><code>NOTE: the same code was workign for me before upgrating to iOS5.</code></p> <p>This is the code for TableViewController.m file</p> <pre><code> #import "CTableViewController.h" @implementation CTableViewController @synthesize arrNames; -(id)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { NSLog(@"CTableViewController::initWithStyle"); // Custom initialization } return self; } -(void)viewDidLoad { [super viewDidLoad]; arrNames = [[NSMutableArray alloc]initWithObjects:@"Peter Frank Brauer",@"Robert Schneider",@"Winfried Walter Kem",@"Eugen Germen Bachle",@"Clara Weib",@"Heinz Guther Winkler",@"Roland Bendel",@"Swen Aschemeyer",@"Patrick Bodingmeier",nil]; } -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 1; } -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { // Return the number of rows in the section. return [self.arrNames count]; } -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]; } // Configure the cell... cell.textLabel.text = [self.arrNames objectAtIndex:indexPath.row]; cell.textLabel.font = [UIFont systemFontOfSize:16]; NSLog(@"CTableViewController::cellForRowAtIndexPath"); return cell; } -(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSLog(@"called didSelectRow method"); } @end </code></pre> <p>Thank you, Please help Suse</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload