开发者

Image problem in iphone

I am passing im开发者_JAVA技巧ages from array to a UIImageView. These images changes according to situation....But i have found that some images never appear when the corresponding condition is satisfied...and the problem is with those images..

When i changed them with other one then other are working

Is there any special format of image that UIImageView support


We need to see a code sample, otherwise we’re just making things up. You mentioned the following code in the comments:

NSArray *array= [[NSArray alloc] initWithObjects:
    @"My-haircare.jpg", @"Boxer.png", @"weeping.jpg", @"great.png"];

This is wrong, you need to terminate the object list with nil:

NSArray *array= [[NSArray alloc] initWithObjects:
    @"My-haircare.jpg", @"Boxer.png", @"weeping.jpg", @"great.png", nil];

This could very well be the source of your problem. But as I said, without code we’re just guessing.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜