Re: [問題] imageView黑畫面..
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)
→
09/22 21:01, , 1F
09/22 21:01, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章