mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-07 00:12:48 +08:00
Regen on 1bc9723.
This commit is contained in:
@@ -1,95 +1,98 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
|
||||
<title>ASTableViewDelegate Protocol Reference</title>
|
||||
<meta id="xcode-display" name="xcode-display" content="render"/>
|
||||
<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
|
||||
<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
|
||||
<meta name="generator" content="appledoc 2.2 (build 963)" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="top_header">
|
||||
<div id="library" class="hideInXcode">
|
||||
<h1><a id="libraryTitle" href="../index.html">AsyncDisplayKit </a></h1>
|
||||
<a id="developerHome" href="../index.html">Facebook</a>
|
||||
</div>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASTableViewDelegate Protocol Reference</title>
|
||||
|
||||
<link rel="stylesheet" href="../css/style.css">
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
|
||||
<meta name="generator" content="appledoc 2.2.1 (build 1333)">
|
||||
</head>
|
||||
<body class="appledoc">
|
||||
<header>
|
||||
<div class="container" class="hide-in-xcode">
|
||||
|
||||
<div id="title" role="banner">
|
||||
<h1 class="hideInXcode">ASTableViewDelegate Protocol Reference</h1>
|
||||
</div>
|
||||
<ul id="headerButtons" role="toolbar">
|
||||
<li id="toc_button">
|
||||
<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
|
||||
</li>
|
||||
<li id="jumpto_button" role="navigation">
|
||||
<select id="jumpTo">
|
||||
<h1 id="library-title">
|
||||
<a href="../index.html">AsyncDisplayKit </a>
|
||||
</h1>
|
||||
|
||||
<p id="developer-home">
|
||||
<a href="../index.html">Facebook</a>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<aside>
|
||||
<div class="container">
|
||||
<nav>
|
||||
<ul id="header-buttons" role="toolbar">
|
||||
<li><a href="../index.html">Index</a></li>
|
||||
<li><a href="../hierarchy.html">Hierarchy</a></li>
|
||||
|
||||
<li id="on-this-page" role="navigation">
|
||||
<label>
|
||||
On This Page
|
||||
|
||||
<div class="chevron">
|
||||
<div class="chevy chevron-left"></div>
|
||||
<div class="chevy chevron-right"></div>
|
||||
</div>
|
||||
|
||||
<select id="jump-to">
|
||||
<option value="top">Jump To…</option>
|
||||
|
||||
<option value="overview">Overview</option>
|
||||
|
||||
|
||||
|
||||
|
||||
<option value="tasks">Tasks</option>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<optgroup label="Instance Methods">
|
||||
|
||||
<option value="//api/name/shouldBatchFetchForTableView:">- shouldBatchFetchForTableView:</option>
|
||||
|
||||
<option value="//api/name/tableView:willBeginBatchFetchWithContext:">- tableView:willBeginBatchFetchWithContext:</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
<nav id="tocContainer" class="isShowingTOC">
|
||||
<ul id="toc" role="tree">
|
||||
|
||||
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASTableViewDelegate Protocol Reference</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<article>
|
||||
<div id="contents" class="isShowingTOC" role="main">
|
||||
<a title="ASTableViewDelegate Protocol Reference" name="top"></a>
|
||||
<div class="main-navigation navigation-top">
|
||||
<ul>
|
||||
<li><a href="../index.html">Index</a></li>
|
||||
<li><a href="../hierarchy.html">Hierarchy</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="header">
|
||||
<div class="section-header">
|
||||
<h1 class="title title-header">ASTableViewDelegate Protocol Reference</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id="container">
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<td class="specification-title">Conforms to</td>
|
||||
<td class="specification-value"><a href="../Protocols/ASCommonTableViewDelegate.html">ASCommonTableViewDelegate</a><br />NSObject</td>
|
||||
<th>Conforms to</th>
|
||||
<td><a href="../Protocols/ASCommonTableViewDelegate.html">ASCommonTableViewDelegate</a><br />NSObject</td>
|
||||
</tr><tr>
|
||||
<td class="specification-title">Declared in</td>
|
||||
<td class="specification-value">ASTableView.h</td>
|
||||
<th>Declared in</th>
|
||||
<td>ASTableView.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
@@ -102,131 +105,172 @@ responsible for deciding their preferred onscreen height in -calculateSizeThatFi
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
<div class="main-navigation navigation-bottom">
|
||||
<ul>
|
||||
<li><a href="../index.html">Index</a></li>
|
||||
<li><a href="../hierarchy.html">Hierarchy</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<hr />
|
||||
<div class="footer-copyright">
|
||||
<p><span class="copyright">© 2015 Facebook. All rights reserved. (Last updated: 2015-01-21)</span><br />
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/tableView:willBeginBatchFetchWithContext:" title="tableView:willBeginBatchFetchWithContext:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/tableView:willBeginBatchFetchWithContext:">– tableView:willBeginBatchFetchWithContext:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Receive a message that the tableView is near the end of its data set and more data should be fetched if necessary.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (void)tableView:(ASTableView *)<em>tableView</em> willBeginBatchFetchWithContext:(ASBatchContext *)<em>context</em></code></div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection arguments-section parameters">
|
||||
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
||||
<table class="argument-def parameter-def">
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>tableView</code></th>
|
||||
<td><p>The sender.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>context</code></th>
|
||||
<td><p>A context object that must be notified when the batch fetch is completed.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection discussion-section">
|
||||
<h4 class="method-subtitle">Discussion</h4>
|
||||
<p>You must eventually call -completeBatchFetching: with an argument of YES in order to receive future
|
||||
notifications to do batch fetches. This method is called on a background queue.</p>
|
||||
|
||||
<p>ASTableView currently only supports batch events for tail loads. If you require a head load, consider implementing a
|
||||
UIRefreshControl.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASTableView.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/shouldBatchFetchForTableView:" title="shouldBatchFetchForTableView:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/shouldBatchFetchForTableView:">– shouldBatchFetchForTableView:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Tell the tableView if batch fetching should begin.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (BOOL)shouldBatchFetchForTableView:(ASTableView *)<em>tableView</em></code></div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection arguments-section parameters">
|
||||
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
||||
<table class="argument-def parameter-def">
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>tableView</code></th>
|
||||
<td><p>The sender.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection discussion-section">
|
||||
<h4 class="method-subtitle">Discussion</h4>
|
||||
<p>Use this method to conditionally fetch batches. Example use cases are: limiting the total number of
|
||||
objects that can be fetched or no network connection.</p>
|
||||
|
||||
<p>If not implemented, the tableView assumes that it should notify its asyncDelegate when batch fetching
|
||||
should occur.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASTableView.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="footer-copyright">
|
||||
|
||||
<p class="copyright">Copyright © 2015 Facebook. All rights reserved. Updated: 2015-07-13</p>
|
||||
|
||||
|
||||
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1333)</a>.</p>
|
||||
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</article>
|
||||
<script type="text/javascript">
|
||||
function jumpToChange()
|
||||
{
|
||||
window.location.hash = this.options[this.selectedIndex].value;
|
||||
}
|
||||
|
||||
function toggleTOC()
|
||||
{
|
||||
var contents = document.getElementById('contents');
|
||||
var tocContainer = document.getElementById('tocContainer');
|
||||
|
||||
if (this.getAttribute('class') == 'open')
|
||||
{
|
||||
this.setAttribute('class', '');
|
||||
contents.setAttribute('class', '');
|
||||
tocContainer.setAttribute('class', '');
|
||||
|
||||
window.name = "hideTOC";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.setAttribute('class', 'open');
|
||||
contents.setAttribute('class', 'isShowingTOC');
|
||||
tocContainer.setAttribute('class', 'isShowingTOC');
|
||||
|
||||
window.name = "";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function toggleTOCEntryChildren(e)
|
||||
{
|
||||
e.stopPropagation();
|
||||
var currentClass = this.getAttribute('class');
|
||||
if (currentClass == 'children') {
|
||||
this.setAttribute('class', 'children open');
|
||||
}
|
||||
else if (currentClass == 'children open') {
|
||||
this.setAttribute('class', 'children');
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function tocEntryClick(e)
|
||||
{
|
||||
e.stopPropagation();
|
||||
return true;
|
||||
}
|
||||
|
||||
function init()
|
||||
{
|
||||
var selectElement = document.getElementById('jumpTo');
|
||||
selectElement.addEventListener('change', jumpToChange, false);
|
||||
|
||||
var tocButton = document.getElementById('table_of_contents');
|
||||
tocButton.addEventListener('click', toggleTOC, false);
|
||||
|
||||
var taskTreeItem = document.getElementById('task_treeitem');
|
||||
if (taskTreeItem.getElementsByTagName('li').length > 0)
|
||||
{
|
||||
taskTreeItem.setAttribute('class', 'children');
|
||||
taskTreeItem.firstChild.setAttribute('class', 'disclosure');
|
||||
}
|
||||
|
||||
var tocList = document.getElementById('toc');
|
||||
|
||||
var tocEntries = tocList.getElementsByTagName('li');
|
||||
for (var i = 0; i < tocEntries.length; i++) {
|
||||
tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
|
||||
}
|
||||
|
||||
var tocLinks = tocList.getElementsByTagName('a');
|
||||
for (var i = 0; i < tocLinks.length; i++) {
|
||||
tocLinks[i].addEventListener('click', tocEntryClick, false);
|
||||
}
|
||||
|
||||
if (window.name == "hideTOC") {
|
||||
toggleTOC.call(tocButton);
|
||||
}
|
||||
}
|
||||
|
||||
window.onload = init;
|
||||
|
||||
// If showing in Xcode, hide the TOC and Header
|
||||
if (navigator.userAgent.match(/xcode/i)) {
|
||||
document.getElementById("contents").className = "hideInXcode"
|
||||
document.getElementById("tocContainer").className = "hideInXcode"
|
||||
document.getElementById("top_header").className = "hideInXcode"
|
||||
}
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user