Iam開發一個應用程序。我使用4行進行表視圖。每行包含imageview.Every imageview可以從CAMERA中獲取圖像。我的問題是獲取第三張圖像後,圖像會出現在不同的位置.ANd如果你滾動桌面視圖圖像會得到黑色。圖像沒有出現。請告訴我如何解決這個問題。是否這個記憶問題或不。告訴我。如何處理tableview中的兩個以上的圖像?
0
A
回答
0
看看這個,
UIImageView *backgroundCellImage=[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 768, 80)];
backgroundCellImage.image=[UIImage imageNamed:@"ImageName1.png"];
UIImageView *separatorImage=[[UIImageView alloc] initWithFrame:CGRectMake(100, 0, 62, 80)];
separatorImage.image=[UIImage imageNamed:@"ImageName2.png"];
[cell.contentView addSubview:backgroundCellImage];
[cell.contentView addSubview:separatorImage];
[backgroundCellImage release];
[separatorImage release];
0
我也有類似的問題,如果我理解正確。如果您使用dequeueReusableCellWithIdentifier
來獲取您的單元格(您應該這樣做),那麼您將需要設置單元格的所有屬性的值,否則將從先前的單元格中留下垃圾。
例如:
cell.detailedTextLabel.text = @"";
如果這個特定單元沒有detailedText。正如@Akshay說你需要發佈你的cellForRow代碼,以便我們看到發生了什麼。
+0
iam使用cell.detailTextLabel.text = @「」; –
相關問題
- 1. 圖像處理:如何處理圖像以用於初始化
- 2. 如何在GTK的圖形屏幕上處理多個圖像?
- 3. Android上的圖像處理
- 4. Java上的圖像處理
- 5. GPU上的圖像處理
- 6. 處理didSelectRowatindexPath在一個ViewController中的兩個tableView
- 7. 如何讓keybd_event同時處理兩個以上的按鍵?
- 8. 在圖像分類中如何處理「以上都不是」?
- 9. Java中的圖像處理,如MATLAB圖像處理工具箱
- 10. Matlab-處理兩個subploted圖像
- 11. 如何處理MVC視圖上的兩個提交按鈕
- 12. 如何在ExpandableListView的子視圖上處理兩個ImageButtons
- 13. 如何處理webpack中的base64圖像?
- 14. 如何處理圖像中的信息?
- 15. 如何處理這個圖像處理的問題 - 分類
- 16. 如何做像FaceGoo的圖像處理
- 17. 在兩個以上的線程上可以graphicsmagick批處理嗎?
- 18. 如何在Nodejs中處理多個圖像上傳
- 19. 如何在ASP.NET MVC網站中處理多個圖像上傳?
- 20. GPU上的紋理圖像處理?
- 21. 如何在兩個以上的活動之間傳遞圖像
- 22. 如何在一個xib中處理兩個地圖視圖?
- 23. 如何匹配兩個TableView中的值
- 24. 如何處理大圖像?
- 25. 如何處理圖像?
- 26. 如何處理圖像?
- 27. 如何處理圖像
- 28. iOS:如何處理圖像?
- 29. 如何處理.tif圖像?
- 30. 如何處理大圖像?
發佈您的''''''''''''''''代碼。 – Akshay
please改進你的問題。我很難readit。 – Robert