我想在按钮上添加UIImage,但是del.png不能显示在我的按钮上,我该怎么办?
我尝试了很多加载图片的方法,但都没有效果,比如:
UIImage* delImage = [[UIImage alloc] initWithContentsOfFile:@"del.png"];
UIImage* delImage = [UIImage imageNamed:@"del.png"];
UIImage* delImage =[UIImage imageWithContentsOfFile:@"del.png"];
CalDelBtn *BookItem = [[CalDelBtn alloc] initWithFrame:CGRectMake(startPointX, startPointY, 75, 113) statuePicture:delImage];
请给我一些建议,谢谢!!