Hi, I was trying to migrate a simple helloworld app from iPhone to iPad. (I have used the 'two device-specific applications' model)
It works well with iPhone simulator 3.2 (the iPad simulator). But after I installed it onto a real iPad device, it just doesn't work. The app cannot get started.
below is my code, thanks a lot
It works well with iPhone simulator 3.2 (the iPad simulator). But after I installed it onto a real iPad device, it just doesn't work. The app cannot get started.
below is my code, thanks a lot
Code:
- (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] autorelease];
}
[[cell textLabel] setText:@"helloworld"];
return cell;
}