FeaturedViewController
class FeaturedViewController : UIViewController, UITableViewDelegate, UITableViewDataSource, UIScrollViewDelegate
This is a view controller used to control the feature page
-
This is a
UItableViewwhich is used to displayContents as cellsDeclaration
Swift
@IBOutlet var tableView: UITableView! -
This is the offset of the last Content used to determine the scroll action
Declaration
Swift
var lastContentOffset: CGFloat -
This is a controller to control the refresh
Declaration
Swift
var refreshControl: UIRefreshControl
-
Customise
TableViewDeclaration
Swift
func customisation() -
Refresh the page, when a notification is being sent with value refresh
Declaration
Swift
@objc func refresh(sender _: Any)
-
Tells the list of
Contents to return the number of rows in a given section of a table view.Declaration
Swift
func tableView(_: UITableView, numberOfRowsInSection _: Int) -> IntParameters
tableViewThe table-view object requesting this information.
indexPathAn index number identifying a section in tableView.
Return Value
The number of rows in section.
-
Asks the list of
Cententfor a cell to insert in a particular location of the table view.Declaration
Swift
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCellParameters
tableViewA table-view object requesting the cell.
indexPathAn index path locating a row in tableView.
Return Value
An object inheriting from
UITableViewCell that the table view can use for the specified row.UIKitraises an assertion if you return nil. -
Tells the delegate that the specified row is now selected. And send open notification
Declaration
Swift
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)Parameters
tableViewA table-view object informing the delegate about the new row selection.
indexPathAn index path locating the new selected row in tableView.
-
Called after the controller's view is loaded into memory. Load
customisationmethodDeclaration
Swift
override func viewDidLoad()
FeaturedViewController Class Reference