作者whitefur (白毛)
看板MacDev
标题Re: [问题] imageView黑画面..
时间Sun Sep 22 19:04:31 2013
https://developer.apple.com/library/ios/documentation/uikit/reference/UIImage_Class/Reference/Reference.html#//apple_ref/occ/clm/UIImage/imageNamed:
On iOS 4 and later, if the file is in PNG format, it is not necessary to
specify the .PNG filename extension.
如果是PNG以外的格式就要加副档名
※ 引述《y03131003 (Jimmy)》之铭言:
: 我从apple那边下载了page control的sample code
: http://ppt.cc/4rrW
: 他就是把图片load进imageView而已
: 但我把里面的其中一张图换成这张图片
: http://ppt.cc/JM7C
: 发现imageView跑不出这张图片..
: 原因是什麽呢?
: 我观察了一下这张图片
: 其中alpha channel是No
: 难道跟这个有关?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 36.232.222.247
※ 编辑: whitefur 来自: 36.232.222.247 (09/22 19:05)
1F:→ y03131003:感谢!! 09/22 21:01