Pour d'autres qui trébuchent encore sur cette question, voici comment faire un programme.
Créer une sous-classe UIView et outrepasser drawRect:
ce qui suit:
#define PADDING 4.f //give the canvas some padding so the ends and joints of the lines can be drawn with a mitered joint
- (void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetStrokeColorWithColor(context, [UIColor grayColor].CGColor);
CGContextSetLineWidth(context, 3.f);
CGContextSetLineJoin(context, kCGLineJoinMiter);
CGContextMoveToPoint(context, PADDING, PADDING);
CGContextAddLineToPoint(context, self.frame.size.width - PADDING, self.frame.size.height/2);
CGContextAddLineToPoint(context, PADDING, self.frame.size.height - PADDING);
CGContextStrokePath(context);
}
Dessine un indicateur boursier flèche. De là, vous pouvez changer la couleur, la largeur de la ligne, etc.
Pour ajouter l'affichage de l'indicateur pour ton portable:
#define ACCESSORY_WIDTH 13.f
#define ACCESSORY_HEIGHT 18.f
cell.accessoryView = [[AccessoryIndicatorView alloc] initWithFrame:CGRectMake(self.frame.size.width - ACCESSORY_WIDTH - CELL_PADDING, self.frame.size.height/2 - ACCESSORY_HEIGHT/2, ACCESSORY_WIDTH, ACCESSORY_HEIGHT)];
plz me répondre bientôt ... – Mano
sans créer UIButton ou UIImageView comme accessoryView de votre UITableViewCell Par exemple, c'est impossible. – jamapag
http://stackoverflow.com/questions/3423824/how-do-i-make-uitableviewcellaccessorydisclosureindicator-visible-in-orange-color/3423863#3423863 – Pablo