有沒有我尋覓了很多的一些任意的方式展現在iPad應用網格視圖形式如何表明,像在iPad應用網格視圖數據
我要顯示在iPad應用網格視圖中的數據資料說使用自定義表格視圖,但它不看我想完整的專業,我發現iOS DataGrid TableView的iPad。
是否可以使用它是免費的或不是。以及如何實現這一點,如果可能的話。 下面是iOS的電網
http://www.binpress.com/app/ios-data-grid-table-view/586
有沒有我尋覓了很多的一些任意的方式展現在iPad應用網格視圖形式如何表明,像在iPad應用網格視圖數據
我要顯示在iPad應用網格視圖中的數據資料說使用自定義表格視圖,但它不看我想完整的專業,我發現iOS DataGrid TableView的iPad。
是否可以使用它是免費的或不是。以及如何實現這一點,如果可能的話。 下面是iOS的電網
http://www.binpress.com/app/ios-data-grid-table-view/586
你怎麼能沒有在AQGridView絆倒了。
但是,如果您只是對樣式化單元格感興趣,則可以實現一個custom uitableview cell,它具有幾個網格並根據您的要求進行設計。
有許多教程顯示如何自定義UITableViewCell
。
鏈接通過使用CustomUITableViewCell就可以得到same.i.e採取的UITableViewCell和三個或四個標籤中的cellForRowAtIndexPath方法添加到it.Then傳遞數據。
按照您的要求創建自定義UITableViewCell並將該單元加載到表視圖單元格。
您可以使用下面的示例代碼表的的cellForRowAtIndexPath方法與加載自定義單元格:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *sCellIdentifier = @"CustomCell"; CustomCell *cell = (CustomCell *)[tableView dequeueReusableCellWithIdentifier:sCellIdentifier]; if (cell == nil) { NSArray *topLevelObject = [[NSBundle mainBundle] loadNibNamed: @"CustomCell" owner:self options:nil]; for (id currentObject in topLevelObject) { if ([currentObject isKindOfClass:[UITableViewCell class]]) { cell = (CustomCell *)currentObject; break; } } } cell.label1.text = @"label1"; // you can access all controllers of your custom cell like this way cell.selectionStyle = UITableViewCellSelectionStyleNone; return cell; }
我使用了GMGridview,它有一個例子,基本上如果你改變單元格大小和列,你可以使它適合iPad或iPhone。如果您需要輸入數據,您還可以添加UITextField(而不是默認的UILabel)。一個很好的功能是它可以滾動。
http://www.gmoledina.ca/projects/gmgridview/
隨意問,如果你有任何問題。
我們在我們的應用中使用這個:http://www.ioscomponents.com/。我們很喜歡它。
感謝您提及我們的產品!我們已經開放它! https://github.com/flexicious/iOSDataGrid – 2017-12-20 19:29:05
今天來到這個MDSpreadView。我沒有深入研究它,但它看起來很酷。 https://github.com/mochidev/MDSpreadView – uudaddy 2013-07-10 20:25:16