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, willRotateToInterfaceOrientation
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canEditRowAtIndexPath, canMoveRowAtIndexPath, commitEditingStyle, moveRowAtIndexPath
accessoryButtonTappedForRowWithIndexPath, didDeselectRowAtIndexPath, didEndEditingRowAtIndexPath, didSelectRowAtIndexPath, editingStyleForRowAtIndexPath, heightForFooterInSection, heightForHeaderInSection, shouldIndentWhileEditingRowAtIndexPath, titleForDeleteConfirmationButtonForRowAtIndexPath, viewForFooterInSection, viewForHeaderInSection, willBeginEditingRowAtIndexPath, willDisplayCell
public 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).UITableViewStyle
public void setTableView(UITableView tableview)
tableview
- The table view for this view controller.public UITableView tableView()
public void loadView()
UIViewController
loadView
in class UIViewController
public String titleForFooterInSection(UITableView table, int section)
UITableViewDataSource
titleForFooterInSection
in interface UITableViewDataSource
table
- The table view for which the title is requested.section
- The section of the table view.public String titleForHeaderInSection(UITableView table, int section)
UITableViewDataSource
titleForHeaderInSection
in interface UITableViewDataSource
table
- The table view for which the title is requested.section
- The section of the table view.public UITableViewCell cellForRowAtIndexPath(UITableView tableView, NSIndexPath idx)
UITableViewDataSource
cellForRowAtIndexPath
in interface UITableViewDataSource
tableView
- The table view into which the cell is inserted.idx
- The index of the row.public int numberOfRowsInSection(UITableView tableView, int section)
UITableViewDataSource
numberOfRowsInSection
in interface UITableViewDataSource
tableView
- 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)
UITableViewDelegate
heightForRowAtIndexPath
in interface UITableViewDelegate
tableView
- The table view that corresponds to this delegate.indexPath
- The related row.public int numberOfSectionsInTableView(UITableView table)
UITableViewDataSource
numberOfSectionsInTableView
in interface UITableViewDataSource
table
- The table view for which the number of sections is returned.Copyright © 2020. All rights reserved.