查找显示图片的两行方法

来源:互联网 发布:yield java释放锁 编辑:程序博客网 时间:2024/06/05 18:10
第一种:    NSString *path = [[NSBundle mainBundle] pathForResource:@"Default-568h@2x" ofType:@"png"];

        UIImage *logo = [UIImage imageWithContentsOfFile:path];

but,baby, do not forget  add file into "Copy bundle Resources" section , of title "BUILD Phases";  shit 



第二种:[uiimage  nameofimage@"" ];

0 0
原创粉丝点击