firstButton est un UIButton de type Custom. J'en mets trois par programmation dans chaque cellule d'un tableau, ainsi: [firstButton setImage:markImage forState:UIControlStateNormal]; [firstButton setContentMode:UIViewContentModeScaleAspectFit]; [cell.contentView addSubview:firstButton]; Ailleurs, je lui dis de clipToBounds. Ce que j'obtiens, c'est un recadrage du carré central de l'image, plutôt qu'un rendu à l'échelle de son aspect. …
We use cookies and other tracking technologies to improve your browsing experience on our website,
to show you personalized content and targeted ads, to analyze our website traffic,
and to understand where our visitors are coming from.
By continuing, you consent to our use of cookies and other tracking technologies and
affirm you're at least 16 years old or have consent from a parent or guardian.