开发者

Console error saying [loadimages view]: unrecognized selector sent

imageview = [[[UIImageView alloc] initWithFrame:CGRectMake(x,y,w,h)]autorelease];
   开发者_如何学C imageview.image = [[UIImage imageNamed: [NSString stringWithString:@"homebar.png"]]autorelease];
    [[self view] addSubview:imageview];
    imageview.frame = CGRectMake(imageview.frame.origin.x, (imageview.frame.origin.y), imageview.frame.size.width, imageview.frame.size.height);

I'm using this code to add an image to an uiview bur it results in a crash showing the error [loadimages view]: unrecognized selector sent

There is also a warning showing that: loadimages may not respond to -view

I'm just a beginner could any one please help me .

Thanks.


That would be because loadImages does not have the method view in it. You also have not posted any relevant code.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜