大家好 StackOverflow
我的图片无法显示在 SpringBoard 上
在我的 Tweak.xm SpringBoard 中,我的 UILabel 出现了,但我的 UIImage 不会出现......
对于 UIImage 我试图遵循这个问题UIImage 可能无法响应 imageWithContentsofFile
但我不知道imageWithContents**Of**File
答案中所说的意思,所以我仍然坚持使用这段代码:
[basePic setImage:[UIImage imageWithContentsOfFile:@"layout/private/var/stash/subject4stw/weatherspring/pic.png"]];
basePic.frame = CGRectMake(21.0,0.0,320.0,98.0);
[self.viewThing addSubview:basePic];
[basePic release];
有人可以帮我弄这个吗?
另外theos在编译时不会给出任何警告或错误,它编译并成功运行
我试过了
NSLog(@"%@",[UIImage imageWithContentsOfFile:@"/private/var/stash/subject4stw/weatherspring/pic.png"]);
我得到了输出,但是当我试图让它出现在我的 SpringBoard 上时,它只是保持空白