這是我的疑問!WatchKit:如何在objC中動態動畫存儲在Nsmutablearray中的圖像
如何直接從nsmutablearray運行gif圖像,我通過將圖片分配給Wkinterfaceimage來動態存儲圖像?
當前我正在分配給wkinterfaceimage的GIf圖像。 通過轉換gif圖像,我在運行時存儲了一組Mutablearray中的圖像。如何將該數組分配給wkinterfaceimage以顯示運行gif圖像。 我發現夫婦試圖在OBJ C到實現迅速的教程,PLZ讓我知道烏爾理念和代碼目標C
下面是一個使用上面的代碼我的代碼
[imageView setImage:[frames objectAtIndex:0]];
[imageView startAnimatingWithImagesInRange:NSMakeRange(0,frames.count) duration:1 repeatCount:0];
顯示黑屏在類似器上,如果評論第二行顯示0索引圖像。幀速率的
結果
2015-04-08 10:21:53.206 WatchkitDemo WatchKit Extension[852:24553] {
DelayTime = "0.1";
UnclampedDelayTime = 0; }
幀陣列
2015-04-08 10:21:58.807 WatchkitDemo WatchKit Extension[852:24553] (
"<UIImage: 0x7fe358d2d320>",
"<UIImage: 0x7fe358f05d60>",
"<UIImage: 0x7fe358f08230>",
"<UIImage: 0x7fe358d2fd50>"
)
感謝好友@iAnum ..我將努力在此,回到到u :) –
Asome它:)這工作哥們感謝@iAnum –
歡迎您:) – NightFury