現在我在學習上的iOS開發的UITableView課,我如何能實現對細節的UITableView多個部分非常感謝!
-2
A
回答
0
從以下委託方法UITableViewDataSource
返回適當的值。
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
0
閱讀this
是的,閱讀所有的其他部分,以及對UITableView的
0
了一系列教程,爲這個偉大的,你可以使用的tableview委託方法
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
NSInteger iSectionCount = 1;
return iSectionCount;
}
或簡單地只是
return 1;//For 1 section
委託方法
0
要返回單節做這裏面:
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
return 1;
}
相關問題
- 1. 如何在UITableView中實現具有自適應細節的UIVisualEffectView
- 2. 實現細節
- 3. 如何分割的細節部分
- 4. 節中的部分 - UITableView -
- 5. 如何實施UITableView部分
- 6. 如何在JFace WizardPage中實現一個簡單的主細節
- 7. 如何在rubymotion中創建多個分組的UITableView部分?
- 8. 從UITableView展開多個細節?
- 9. Object_detection實現細節
- 10. Collectors.toSet實現細節
- 11. Groovy實現細節
- 12. 如何在UITableView的動態部分實現固定行數?
- 13. 如何共享多個UITableView的細胞
- 14. 如何在單個視圖中實現多個uitableview?
- 15. 分佈式會話實現細節
- 16. 在UITableView中設置多個部分
- 17. 如何在單個UITableview的部分中組合兩個UITableview?
- 18. 如何實現Android細節通知?
- 19. 界面如何隱藏實現細節
- 20. 細節和實現的
- 21. deque的實現細節
- 22. Saber:如何區分第二個EnhancedAirBook中的細分細節
- 23. 如何在只有一節的UITableView中實現滾動條?
- 24. 在Silverlight中實現主/細節?
- 25. iPhone UITableView與多個部分
- 26. 如何縮小細節部分?
- 27. UITableView中的多個部分導致NSRangeException?
- 28. UITableView細節轉換
- 29. 如何在JavaScript中實現部分類?
- 30. 如何在MVC4中實現部分類?
- (NSInteger的)numberOfSectionsInTableView:(UITableView的*)的tableView { 回報1或任意數量的您想要段; } – janusbalatbat
此問題已被多次詢問。看到這裏:http://stackoverflow.com/questions/6445666/iphone-uitableview-sections –