public class UITableViewController extends UIViewController implements UITableViewDataSource, UITableViewDelegate
| Constructor and Description |
|---|
UITableViewController()
The default table view controller constructor.
|
UITableViewController(int UITableViewStyle)
Constructs a table view controller with the specified style.
|
| Modifier and Type | Method and Description |
|---|---|
UITableViewCell |
cellForRowAtIndexPath(UITableView tableView,
NSIndexPath idx)
Requests a cell to add in the specified row of the table view.
|
double |
heightForRowAtIndexPath(UITableView tableView,
NSIndexPath indexPath)
It is used in order to specify the height of a row.
|
void |
loadView()
Creates a view for this view controller.
|
int |
numberOfRowsInSection(UITableView tableView,
int section)
Returns the number of rows of the specified table view's section.
|
int |
numberOfSectionsInTableView(UITableView table)
Returns the number of sections of the specified table view.
|
void |
setTableView(UITableView tableview)
Sets the table view for this view controller.
|
UITableView |
tableView()
Returns the table view of this view controller.
|
String |
titleForFooterInSection(UITableView table,
int section)
Requests the title for the footer of the specified table view's section.
|
String |
titleForHeaderInSection(UITableView table,
int section)
Requests the title for the header of the specified table view's section.
|
addChildViewController, additionalSafeAreaInsets, allowedChildViewControllersForUnwindingFromSource, attemptRotationToDeviceOrientation, automaticallyAdjustsScrollViewInsets, beginAppearanceTransition, bottomLayoutGuide, childViewControllerContainingSegueSource, childViewControllerForStatusBarHidden, childViewControllerForStatusBarStyle, childViewControllers, contentSizeForViewInPopover, definesPresentationContext, didReceiveMemoryWarning, didRotateFromInterfaceOrientation, disablesAutomaticKeyboardDismissal, dismissModalViewControllerAnimated, dismissViewControllerAnimated, edgesForExtendedLayout, editButtonItem, endAppearanceTransition, extensionContext, hidesBottomBarWhenPushed, interfaceOrientation, isEditing, isModalInPopover, isViewLoaded, loadViewIfNeeded, modalPresentationStyle, modalTransitionStyle, navigationController, navigationItem, nextResponder, nibName, parentViewController, performSegueWithIdentifier, preferredInterfaceOrientationForPresentation, preferredStatusBarStyle, prefersStatusBarHidden, prepareForSegue, presentedViewController, presentingViewController, presentModalViewController, presentViewController, providesPresentationContextTransitionStyle, removeFromParentViewController, restorationIdentifier, rotatingFooterView, rotatingHeaderView, setAdditionalSafeAreaInsets, setAutomaticallyAdjustsScrollViewInsets, setContentSizeForViewInPopover, setDefinesPresentationContext, setEdgesForExtendedLayout, setEditing, setEditing, setHidesBottomBarWhenPushed, setModalInPopover, setModalPresentationStyle, setModalTransitionStyle, setNeedsStatusBarAppearanceUpdate, setProvidesPresentationContextTransitionStyle, setRestorationIdentifier, setTabBarItem, setTitle, setToolbarItems, setToolbarItems, setView, setWantsFullScreenLayout, shouldAutomaticallyForwardAppearanceMethods, shouldAutorotate, shouldAutorotateToInterfaceOrientation, shouldPerformSegueWithIdentifier, showDetailViewController, showViewController, splitViewController, storyboard, supportedInterfaceOrientations, tabBarController, tabBarItem, title, toolbarItems, topLayoutGuide, transitionFromViewController, view, viewDidAppear, viewDidDisappear, viewDidLayoutSubviews, viewDidLoad, viewDidUnload, viewIfLoaded, viewSafeAreaInsetsDidChange, viewWillAppear, viewWillDisappear, viewWillLayoutSubviews, wantsFullScreenLayout, willAnimateRotationToInterfaceOrientation, willRotateToInterfaceOrientationbecomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMovedaddObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKeyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanEditRowAtIndexPath, canMoveRowAtIndexPath, commitEditingStyle, moveRowAtIndexPathaccessoryButtonTappedForRowWithIndexPath, didDeselectRowAtIndexPath, didEndEditingRowAtIndexPath, didSelectRowAtIndexPath, editingStyleForRowAtIndexPath, heightForFooterInSection, heightForHeaderInSection, shouldIndentWhileEditingRowAtIndexPath, titleForDeleteConfirmationButtonForRowAtIndexPath, viewForFooterInSection, viewForHeaderInSection, willBeginEditingRowAtIndexPath, willDisplayCellpublic UITableViewController()
public UITableViewController(int UITableViewStyle)
UITableViewStyle - A constant that specifies the style of table view
that the controller object is to manage (UITableViewStyle.Plain or
UITableViewStyle.Grouped).UITableViewStylepublic void setTableView(UITableView tableview)
tableview - The table view for this view controller.public UITableView tableView()
public void loadView()
UIViewControllerloadView in class UIViewControllerpublic String titleForFooterInSection(UITableView table, int section)
UITableViewDataSourcetitleForFooterInSection in interface UITableViewDataSourcetable - The table view for which the title is requested.section - The section of the table view.public String titleForHeaderInSection(UITableView table, int section)
UITableViewDataSourcetitleForHeaderInSection in interface UITableViewDataSourcetable - The table view for which the title is requested.section - The section of the table view.public UITableViewCell cellForRowAtIndexPath(UITableView tableView, NSIndexPath idx)
UITableViewDataSourcecellForRowAtIndexPath in interface UITableViewDataSourcetableView - The table view into which the cell is inserted.idx - The index of the row.public int numberOfRowsInSection(UITableView tableView, int section)
UITableViewDataSourcenumberOfRowsInSection in interface UITableViewDataSourcetableView - The table view for whose section the number of rows is
returned.section - The index of the table view's section.public double heightForRowAtIndexPath(UITableView tableView, NSIndexPath indexPath)
UITableViewDelegateheightForRowAtIndexPath in interface UITableViewDelegatetableView - The table view that corresponds to this delegate.indexPath - The related row.public int numberOfSectionsInTableView(UITableView table)
UITableViewDataSourcenumberOfSectionsInTableView in interface UITableViewDataSourcetable - The table view for which the number of sections is returned.Copyright © 2020. All rights reserved.