UITableViewCellAccessoryDisclosureIndicator doesn't render the arrow
Filippo Diot...
2 posts
|
That’s really a minor annoyance, but even if I add the mentioned accessoryType to my cell (Episode 2, at the end), I don’t see any arrow appearing in the corresponding cell.
#import "recipeViewController.h"
#import "recipeAppDelegate.h"
@implementation recipeViewController
- (NSInteger) tableView:(UITableView *)tv numberOfRowsInSection:(NSInteger) section {
return 3;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"recipeCell"];
if(nil == cell) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"recipeCell"] autorelease];
}
if(indexPath.row == 0) {
cell.text = @"Cherry Pie";
} else if(indexPath.row == 1) {
cell.text = @"Cake";
} else if(indexPath.row == 2) {
cell.text = @"Cookie";
}
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
return cell;
}
What am I missing? thanks! |
Filippo Diot...
2 posts
|
Of course the solution was very trivial… the UITableView was in fact a bit larger of the View, so that arrows were outside the visible area. |
2 posts, 1 voice
