iphone - UIImageView with stretchableImageWithLeftCapWidth doesn't stretch image -
I am trying to disperse an image into UIImageView - but I have failed miserably :)
Setup:
A scene attached to this view and a UIImageView with NIB-files.
Wired in my class using IBOutlet UIImageView * Background
.
Now, in my class, I try the following:
UIImage * bgImage = [[UIImage imageNamed: @ "myImage.png"] Lift with expanded image Cap Width: 0 topCapHeight: 50]; [Background set image: bgimage]; BgFrame = CGRectMake (0, 0, 250, 200); Background.frame = bgFrame;
The image should be standing - at least, that's what I thought. Hi, this is not working ...: (
The image I am using is the height of 115 px (which should be enough for stretch, I think?)
Got it ... (Interestingly, this is often seconds after asking this question)
In IB, me
What is the solution to this problem ...
Hope that helps someone;)
>
Comments
Post a Comment