CGRect frame = CGRectMake (arrondi ((self.view.bounds.size.width - kImageWidth)/2.0), kTopPlacement, kImageWidth, kImageHeight); self.containerView = [[[UIView alloc] initWithFrame: frame] autorelease]; [self.view addSubview: self.containerView];Ajout d'un bouton à l'intérieur d'une image
// create the initial image view
frame = CGRectMake(0.0, 0.0, kImageWidth, kImageHeight);
self.mainView = [[[UIImageView alloc] initWithFrame:frame] autorelease];
self.mainView.image = [UIImage imageNamed:imagePath];
Je souhaite placer un bouton dans mainview.image. Comment puis-je le faire?
Toute aide sera grandement appréciée.
Il travaille maintenant !! Merci beaucoup!! – isarathg