ich auf einem UIView.
iOS UIView Hintergrundbild
Hier ein UIImage
als Hintergrundbild haben will, ist mein Code:
UIColor *background = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"login.png"]];
self.view.backgroundColor = background;
[background release];
Das Problem ist, dass die Waage nicht in Ordnung ist. Es skaliert 640 bis 480, also kann ich es nicht 100% sicher sagen, aber es sieht so aus, als ob nur 300 bis 250 angezeigt wird oder so ähnlich.
Gibt es eine Anpassung an UIView/fit to size modus?
Was ist die Größe des ursprünglichen PNG? Siehst du das auch auf einem Retina-Gerät? –