久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何在 iphone 水平滾動的滾動視圖中加載圖像包

How to load bundle of images in a scrollview with horrizondal scrolling in iphone?(如何在 iphone 水平滾動的滾動視圖中加載圖像包?)
本文介紹了如何在 iphone 水平滾動的滾動視圖中加載圖像包?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一個 iPhone 應用程序,我需要在其中加載大量圖像(即大約 50 個),它有一個小矩形(略高于縮略圖),每行包含 3 個,一頁有 4 列,我需要水平滾動以加載接下來的 12 張圖像,依此類推.我還需要將其下的頁碼顯示為 1,2 等.

I have an iPhone application in which i need to load a bulk of images (ie around 50),which has a small rect like (little above thumbnail) containing 3 in each row with 4 columns in one page, and i need to scroll horizontally to load the next 12 images and so on. Also i need to show the page number under it as 1,2 etc.

任何人都可以引導我朝著正確的方向在滾動視圖中實現這一點嗎?我真的很亂,如何將圖像視圖添加到這樣的滾動視圖中,而且每個圖像視圖也有自己的按鈕.

Can any body guide me in the right direction to achieve this in a scroll view ?i am really in a mess ,how to add imageview to a scrollview like this ,also each image view has its own buttons also.

推薦答案

使用 UItableview 創建帶有兩個圖像視圖的自定義單元格并將該自定義單元格加載到索引路徑的單元格中,然后創建一個 nsarray 并將圖像名稱傳遞到該數組中,然后將該圖像轉換為數據格式,例如

Use UItableview create custom cell with two imageviews on it and load that custom cell to cell for indexpath then create an nsarray and pass the image names into that array and then convert that image into data format for eg

nsdata *data = [NSdata dataWithcontents of url [array object at index:indexpath.row]];cell.imageview.image = [uiimage imagewithdata:data];為此,您應該知道創建自定義單元格.

nsdata *data = [NSdata dataWithcontents of url [array object at index:indexpath.row]]; cell.imageview.image = [uiimage imagewithdata:data]; for this you should know to create custom cells.

這篇關于如何在 iphone 水平滾動的滾動視圖中加載圖像包?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Stop a UITableView from automatically scrolling(阻止 UITableView 自動滾動)
iOS UIScrollView Lazy Loading(iOS UIScrollView 延遲加載)
using iOS 6.0 SDK and building for iOS 5 Target causes UIScrollView setMinimumZoomScale to fail when running on iOS 5 simulator(在 iOS 5 模擬器上運行時,使用 iOS 6.0 SDK 并為 iOS 5 Target 構建會導致 UIScrollView setMinimumZ
Create partial-screen UIPageViewController programmatically(以編程方式創建部分屏幕 UIPageViewController)
how to make an ImageView zoomable with or without ScrollView.?(如何使用或不使用 ScrollView 使 ImageView 可縮放?)
UIImageView zoom and pinch in UIScrollView(UIImageView 在 UIScrollView 中縮放和捏合)
主站蜘蛛池模板: www.狠狠干| 在线免费观看成年人视频 | 99re在线视频 | 韩日精品视频 | 亚洲成人精选 | 91天堂网 | 亚洲欧美一区二区三区在线 | 看a网站| 激情婷婷| 国产剧情一区 | 国产精品一区二区在线播放 | 欧美日韩国产欧美 | 日韩精品视频一区二区三区 | 久久av网站 | 美女国产| aaaaaaa片毛片免费观看 | 欧美性精品 | 欧美一区2区三区4区公司二百 | 日韩视频一区二区 | 伊人久久免费 | 天天天久久久 | 曰韩三级 | 自拍偷拍中文字幕 | 久久网亚洲 | 免费亚洲一区二区 | 超碰精品在线 | 日韩波多野结衣 | 国产精品a久久久久 | 久久久av | 欧美一级片在线看 | 中文在线视频 | 久久成人精品视频 | 国产午夜精品一区二区三区嫩草 | 精品免费国产视频 | 亚洲视频中文字幕 | 国产剧情一区 | 激情视频一区 | 99精品网| 二区精品| av天天干| 欧美精品一 |