mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-05-28 06:25:37 +08:00
Regen on 1bc9723.
This commit is contained in:
202
appledoc/Classes/ASBackgroundLayoutSpec.html
Normal file
202
appledoc/Classes/ASBackgroundLayoutSpec.html
Normal file
@@ -0,0 +1,202 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASBackgroundLayoutSpec Class 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">
|
||||
|
||||
<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="Class Methods">
|
||||
|
||||
<option value="//api/name/newWithChild:background:">+ newWithChild:background:</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASBackgroundLayoutSpec Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASLayoutSpec.html">ASLayoutSpec</a> : NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASBackgroundLayoutSpec.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>Lays out a single layoutable child, then lays out a background layoutable instance behind it stretched to its size.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/newWithChild:background:" title="newWithChild:background:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithChild:background:">+ newWithChild:background:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>A child that is laid out to determine the size of this spec. If this is nil, then this method
|
||||
returns nil.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithChild:(id<ASLayoutable>)<em>child</em> background:(id<ASLayoutable>)<em>background</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>child</code></th>
|
||||
<td><p>A child that is laid out to determine the size of this spec. If this is nil, then this method
|
||||
returns nil.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>background</code></th>
|
||||
<td><p>A layoutable object that is laid out behind the child. May be nil, in which case the background is omitted.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASBackgroundLayoutSpec.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,95 +1,88 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
|
||||
<title>ASCellNode Class 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>ASCellNode Class 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">ASCellNode Class 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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</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">ASCellNode Class Reference</h1>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<article>
|
||||
<div id="contents" class="isShowingTOC" role="main">
|
||||
<a title="ASCellNode Class 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">ASCellNode Class Reference</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id="container">
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<td class="specification-title">Inherits from</td>
|
||||
<td class="specification-value"><a href="../Classes/ASDisplayNode.html">ASDisplayNode</a> : ASDealloc2MainObject</td>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASDisplayNode.html">ASDisplayNode</a> : ASDealloc2MainObject</td>
|
||||
</tr><tr>
|
||||
<td class="specification-title">Declared in</td>
|
||||
<td class="specification-value">ASCellNode.h</td>
|
||||
<th>Declared in</th>
|
||||
<td>ASCellNode.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
@@ -99,131 +92,30 @@
|
||||
</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 />
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
<div class="footer-copyright">
|
||||
<p><span class="copyright">© 2015 Facebook. All rights reserved. (Last updated: 2015-01-21)</span><br />
|
||||
|
||||
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
|
||||
<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>
|
||||
</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>
|
||||
205
appledoc/Classes/ASCenterLayoutSpec.html
Normal file
205
appledoc/Classes/ASCenterLayoutSpec.html
Normal file
@@ -0,0 +1,205 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASCenterLayoutSpec Class 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">
|
||||
|
||||
<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="Class Methods">
|
||||
|
||||
<option value="//api/name/newWithCenteringOptions:sizingOptions:child:">+ newWithCenteringOptions:sizingOptions:child:</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASCenterLayoutSpec Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASLayoutSpec.html">ASLayoutSpec</a> : NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASCenterLayoutSpec.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>Lays out a single layoutable child and position it so that it is centered into the layout bounds.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/newWithCenteringOptions:sizingOptions:child:" title="newWithCenteringOptions:sizingOptions:child:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithCenteringOptions:sizingOptions:child:">+ newWithCenteringOptions:sizingOptions:child:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Initializer.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithCenteringOptions:(ASCenterLayoutSpecCenteringOptions)<em>centeringOptions</em> sizingOptions:(ASCenterLayoutSpecSizingOptions)<em>sizingOptions</em> child:(id<ASLayoutable>)<em>child</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>centeringOptions</code></th>
|
||||
<td><p>How the child is centered.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>sizingOptions</code></th>
|
||||
<td><p>How much space will be taken up.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>child</code></th>
|
||||
<td><p>The child to center.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASCenterLayoutSpec.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
400
appledoc/Classes/ASEditableTextNode.html
Normal file
400
appledoc/Classes/ASEditableTextNode.html
Normal file
@@ -0,0 +1,400 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASEditableTextNode Class 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">
|
||||
|
||||
<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="Properties">
|
||||
|
||||
<option value="//api/name/attributedPlaceholderText">attributedPlaceholderText</option>
|
||||
|
||||
<option value="//api/name/attributedText">attributedText</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<optgroup label="Instance Methods">
|
||||
|
||||
<option value="//api/name/frameForTextRange:">- frameForTextRange:</option>
|
||||
|
||||
<option value="//api/name/isDisplayingPlaceholder">- isDisplayingPlaceholder</option>
|
||||
|
||||
<option value="//api/name/isFirstResponder">- isFirstResponder</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASEditableTextNode Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASDisplayNode.html">ASDisplayNode</a> : ASDealloc2MainObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASEditableTextNode.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/isDisplayingPlaceholder" title="isDisplayingPlaceholder"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/isDisplayingPlaceholder">– isDisplayingPlaceholder</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Indicates if the receiver is displaying the placeholder text.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (BOOL)isDisplayingPlaceholder</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection return">
|
||||
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
||||
<p>YES if the placeholder is currently displayed; NO otherwise.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection discussion-section">
|
||||
<h4 class="method-subtitle">Discussion</h4>
|
||||
<p>To update the placeholder, see the <a href="#//api/name/attributedPlaceholderText">attributedPlaceholderText</a> property.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASEditableTextNode.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/attributedPlaceholderText" title="attributedPlaceholderText"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/attributedPlaceholderText"> attributedPlaceholderText</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>The styled placeholder text displayed by the text node while no text is entered</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, readwrite, strong) NSAttributedString *attributedPlaceholderText</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection discussion-section">
|
||||
<h4 class="method-subtitle">Discussion</h4>
|
||||
<p>The placeholder is displayed when the user has not entered any text and the keyboard is not visible.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASEditableTextNode.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/attributedText" title="attributedText"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/attributedText"> attributedText</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>The styled text displayed by the receiver.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, readwrite, copy) NSAttributedString *attributedText</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection discussion-section">
|
||||
<h4 class="method-subtitle">Discussion</h4>
|
||||
<p>When the placeholder is displayed (as indicated by -isDisplayingPlaceholder), this value is nil. Otherwise, this value is the attributed text the user has entered. This value can be modified regardless of whether the receiver is the first responder (and thus, editing) or not. Changing this value from nil to non-nil will result in the placeholder being hidden, and the new value being displayed.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASEditableTextNode.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/isFirstResponder" title="isFirstResponder"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/isFirstResponder">– isFirstResponder</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Indicates whether the receiver’s text view is the first responder, and thus has the keyboard visible and is prepared for editing by the user.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (BOOL)isFirstResponder</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection return">
|
||||
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
||||
<p>YES if the receiver’s text view is the first-responder; NO otherwise.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASEditableTextNode.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/frameForTextRange:" title="frameForTextRange:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/frameForTextRange:">– frameForTextRange:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Returns the frame of the given range of characters.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (CGRect)frameForTextRange:(NSRange)<em>textRange</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>textRange</code></th>
|
||||
<td><p>A range of characters.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection return">
|
||||
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
||||
<p>A CGRect that is the bounding box of the glyphs covered by the given range of characters, in the coordinate system of the receiver.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection discussion-section">
|
||||
<h4 class="method-subtitle">Discussion</h4>
|
||||
<p>This method raises an exception if <code>textRange</code> is not a valid range of characters within the receiver’s attributed text.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASEditableTextNode.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
214
appledoc/Classes/ASInsetLayoutSpec.html
Normal file
214
appledoc/Classes/ASInsetLayoutSpec.html
Normal file
@@ -0,0 +1,214 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASInsetLayoutSpec Class 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">
|
||||
|
||||
<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="Class Methods">
|
||||
|
||||
<option value="//api/name/newWithInsets:child:">+ newWithInsets:child:</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASInsetLayoutSpec Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASLayoutSpec.html">ASLayoutSpec</a> : NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASInsetLayoutSpec.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>A layout spec that wraps another layoutable child, applying insets around it.</p>
|
||||
|
||||
<p>If the child has a size specified as a percentage, the percentage is resolved against this spec’s parent
|
||||
size <strong>after</strong> applying insets.</p>
|
||||
|
||||
<p>@example ASOuterLayoutSpec contains an ASInsetLayoutSpec with an ASInnerLayoutSpec. Suppose that:
|
||||
- ASOuterLayoutSpec is 200pt wide.
|
||||
- ASInnerLayoutSpec specifies its width as 100%.
|
||||
- The ASInsetLayoutSpec has insets of 10pt on every side.
|
||||
ASInnerLayoutSpec will have size 180pt, not 200pt, because it receives a parent size that has been adjusted for insets.</p>
|
||||
|
||||
<p>If you’re familiar with CSS: ASInsetLayoutSpec’s child behaves similarly to “box-sizing: border-box”.</p>
|
||||
|
||||
<p>An infinite inset is resolved as an inset equal to all remaining space after applying the other insets and child size.
|
||||
@example An ASInsetLayoutSpec with an infinite left inset and 10px for all other edges will position it’s child 10px from the right edge.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/newWithInsets:child:" title="newWithInsets:child:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithInsets:child:">+ newWithInsets:child:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>The amount of space to inset on each side.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithInsets:(UIEdgeInsets)<em>insets</em> child:(id<ASLayoutable>)<em>child</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>insets</code></th>
|
||||
<td><p>The amount of space to inset on each side.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>child</code></th>
|
||||
<td><p>The wrapped child to inset. If nil, this method returns nil.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASInsetLayoutSpec.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
502
appledoc/Classes/ASLayout.html
Normal file
502
appledoc/Classes/ASLayout.html
Normal file
@@ -0,0 +1,502 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASLayout Class 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">
|
||||
|
||||
<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="Properties">
|
||||
|
||||
<option value="//api/name/position">position</option>
|
||||
|
||||
<option value="//api/name/sublayouts">sublayouts</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
<optgroup label="Class Methods">
|
||||
|
||||
<option value="//api/name/newWithLayoutableObject:size:">+ newWithLayoutableObject:size:</option>
|
||||
|
||||
<option value="//api/name/newWithLayoutableObject:size:position:sublayouts:">+ newWithLayoutableObject:size:position:sublayouts:</option>
|
||||
|
||||
<option value="//api/name/newWithLayoutableObject:size:sublayouts:">+ newWithLayoutableObject:size:sublayouts:</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
<optgroup label="Instance Methods">
|
||||
|
||||
<option value="//api/name/flattenedLayoutUsingPredicateBlock:">- flattenedLayoutUsingPredicateBlock:</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASLayout Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td>NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASLayout.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>Represents a computed immutable layout tree.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/position" title="position"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/position"> position</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Position in parent. Default to CGPointNull.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, readwrite) CGPoint position</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection discussion-section">
|
||||
<h4 class="method-subtitle">Discussion</h4>
|
||||
<p>When being used as a sublayout, this property must not equal CGPointNull.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASLayout.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/sublayouts" title="sublayouts"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/sublayouts"> sublayouts</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Array of ASLayouts. Each must have a valid non-null position.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) NSArray *sublayouts</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASLayout.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/newWithLayoutableObject:size:position:sublayouts:" title="newWithLayoutableObject:size:position:sublayouts:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithLayoutableObject:size:position:sublayouts:">+ newWithLayoutableObject:size:position:sublayouts:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Initializer.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithLayoutableObject:(id<ASLayoutable>)<em>layoutableObject</em> size:(CGSize)<em>size</em> position:(CGPoint)<em>position</em> sublayouts:(NSArray *)<em>sublayouts</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>layoutableObject</code></th>
|
||||
<td><p>The backing ASLayoutable object.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>size</code></th>
|
||||
<td><p>The size of this layout.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>position</code></th>
|
||||
<td><p>The posiion of this layout within its parent (if available).</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>sublayouts</code></th>
|
||||
<td><p>Sublayouts belong to the new layout.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASLayout.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/newWithLayoutableObject:size:sublayouts:" title="newWithLayoutableObject:size:sublayouts:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithLayoutableObject:size:sublayouts:">+ newWithLayoutableObject:size:sublayouts:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Convenience initializer that has CGPointNull position.
|
||||
Best used by ASDisplayNode subclasses that are manually creating a layout for -calculateLayoutThatFits:,
|
||||
or for ASLayoutSpec subclasses that are referencing the “self” level in the layout tree,
|
||||
or for creating a sublayout of which the position is yet to be determined.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithLayoutableObject:(id<ASLayoutable>)<em>layoutableObject</em> size:(CGSize)<em>size</em> sublayouts:(NSArray *)<em>sublayouts</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>layoutableObject</code></th>
|
||||
<td><p>The backing ASLayoutable object.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>size</code></th>
|
||||
<td><p>The size of this layout.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>sublayouts</code></th>
|
||||
<td><p>Sublayouts belong to the new layout.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASLayout.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/newWithLayoutableObject:size:" title="newWithLayoutableObject:size:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithLayoutableObject:size:">+ newWithLayoutableObject:size:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Convenience that has CGPointNull position and no sublayouts.
|
||||
Best used for creating a layout that has no sublayouts, and is either a root one
|
||||
or a sublayout of which the position is yet to be determined.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithLayoutableObject:(id<ASLayoutable>)<em>layoutableObject</em> size:(CGSize)<em>size</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>layoutableObject</code></th>
|
||||
<td><p>The backing ASLayoutable object.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>size</code></th>
|
||||
<td><p>The size of this layout.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASLayout.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/flattenedLayoutUsingPredicateBlock:" title="flattenedLayoutUsingPredicateBlock:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/flattenedLayoutUsingPredicateBlock:">– flattenedLayoutUsingPredicateBlock:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Evaluates a given predicate block against each object in the receiving layout tree
|
||||
and returns a new, 1-level deep layout containing the objects for which the predicate block returns true.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (ASLayout *)flattenedLayoutUsingPredicateBlock:(BOOL ( ^ ) ( ASLayout *evaluatedLayout ))<em>predicateBlock</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>predicateBlock</code></th>
|
||||
<td><p>The block is applied to a layout to be evaluated.
|
||||
The block takes 1 argument: evaluatedLayout - the layout to be evaluated.
|
||||
The block returns YES if evaluatedLayout evaluates to true, otherwise NO.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection return">
|
||||
<h4 class="method-subtitle parameter-title">Return Value</h4>
|
||||
<p>A new, 1-level deep layout containing the layouts for which the predicate block returns true.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASLayout.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
124
appledoc/Classes/ASLayoutSpec.html
Normal file
124
appledoc/Classes/ASLayoutSpec.html
Normal file
@@ -0,0 +1,124 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASLayoutSpec Class 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">
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASLayoutSpec Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td>NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Conforms to</th>
|
||||
<td><a href="../Protocols/ASLayoutable.html">ASLayoutable</a></td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASLayoutSpec.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>A layout spec is an immutable object that describes a layout, loosely inspired by React.</p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
121
appledoc/Classes/ASOverlayLayoutSpec.html
Normal file
121
appledoc/Classes/ASOverlayLayoutSpec.html
Normal file
@@ -0,0 +1,121 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASOverlayLayoutSpec Class 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">
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASOverlayLayoutSpec Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASLayoutSpec.html">ASLayoutSpec</a> : NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASOverlayLayoutSpec.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>This layout spec lays out a single layoutable child and then overlays a layoutable object on top of it streched to its size</p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,130 +1,107 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
|
||||
<title>ASRangeController Class 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>ASRangeController Class 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">ASRangeController Class 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="Properties">
|
||||
|
||||
<option value="//api/name/delegate">delegate</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
<option value="properties">Properties</option>
|
||||
|
||||
|
||||
<option value="//api/name/delegate"> delegate</option>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<option value="instance_methods">Instance Methods</option>
|
||||
|
||||
<option value="//api/name/configureContentView:forCellNode:"> - configureContentView:forCellNode:</option>
|
||||
|
||||
<option value="//api/name/visibleNodeIndexPathsDidChangeWithScrollDirection:"> - visibleNodeIndexPathsDidChangeWithScrollDirection:</option>
|
||||
|
||||
|
||||
<optgroup label="Instance Methods">
|
||||
|
||||
<option value="//api/name/configureContentView:forCellNode:">- configureContentView:forCellNode:</option>
|
||||
|
||||
<option value="//api/name/visibleNodeIndexPathsDidChangeWithScrollDirection:">- visibleNodeIndexPathsDidChangeWithScrollDirection:</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">ASRangeController Class Reference</h1>
|
||||
|
||||
|
||||
|
||||
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
|
||||
|
||||
</ul></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
|
||||
|
||||
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/delegate">delegate</a></span></li>
|
||||
|
||||
</ul></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
|
||||
|
||||
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/configureContentView:forCellNode:">configureContentView:forCellNode:</a></span></li>
|
||||
|
||||
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/visibleNodeIndexPathsDidChangeWithScrollDirection:">visibleNodeIndexPathsDidChangeWithScrollDirection:</a></span></li>
|
||||
|
||||
</ul></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<article>
|
||||
<div id="contents" class="isShowingTOC" role="main">
|
||||
<a title="ASRangeController Class 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">ASRangeController Class Reference</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id="container">
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<td class="specification-title">Inherits from</td>
|
||||
<td class="specification-value">ASDealloc2MainObject</td>
|
||||
<th>Inherits from</th>
|
||||
<td>ASDealloc2MainObject</td>
|
||||
</tr><tr>
|
||||
<td class="specification-title">Conforms to</td>
|
||||
<td class="specification-value">ASDataControllerDelegate</td>
|
||||
<th>Conforms to</th>
|
||||
<td>ASDataControllerDelegate</td>
|
||||
</tr><tr>
|
||||
<td class="specification-title">Declared in</td>
|
||||
<td class="specification-value">ASRangeController.h</td>
|
||||
<th>Declared in</th>
|
||||
<td>ASRangeController.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
@@ -132,313 +109,212 @@
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>Working range controller.</p>
|
||||
|
||||
<p>Used internally by ASTableView and potentially by a future ASCollectionView. Observes the visible range, maintains
|
||||
a working range, and is responsible for handling AsyncDisplayKit machinery (sizing cell nodes, enqueueing and
|
||||
cancelling their asynchronous layout and display, and so on).</p>
|
||||
<p>Used internally by ASTableView and ASCollectionView. It is paired with ASDataController.
|
||||
It is designed to support custom scrolling containers as well. Observes the visible range, maintains
|
||||
“working ranges” to trigger network calls and rendering, and is responsible for driving asynchronous layout of cells.
|
||||
This includes cancelling those asynchronous operations as cells fall outside of the working ranges.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
<h2 class="subtitle subtitle-tasks">Tasks</h2>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="task-list">
|
||||
<li>
|
||||
<span class="tooltip">
|
||||
<code><a href="#//api/name/visibleNodeIndexPathsDidChangeWithScrollDirection:">– visibleNodeIndexPathsDidChangeWithScrollDirection:</a></code>
|
||||
</span>
|
||||
|
||||
|
||||
</li><li>
|
||||
<span class="tooltip">
|
||||
<code><a href="#//api/name/configureContentView:forCellNode:">– configureContentView:forCellNode:</a></code>
|
||||
</span>
|
||||
|
||||
|
||||
</li><li>
|
||||
<span class="tooltip">
|
||||
<code><a href="#//api/name/delegate"> delegate</a></code>
|
||||
</span>
|
||||
<span class="task-item-suffix">property</span>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-methods">
|
||||
<a title="Properties" name="properties"></a>
|
||||
<h2 class="subtitle subtitle-methods">Properties</h2>
|
||||
|
||||
<div class="section-method">
|
||||
<a name="//api/name/delegate" title="delegate"></a>
|
||||
<h3 class="subsubtitle method-title">delegate</h3>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Delegate and ultimate data source. Must not be nil.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, weak) id<ASRangeControllerDelegate> delegate</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<code class="declared-in-ref">ASRangeController.h</code><br />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-methods">
|
||||
<a title="Instance Methods" name="instance_methods"></a>
|
||||
<h2 class="subtitle subtitle-methods">Instance Methods</h2>
|
||||
|
||||
<div class="section-method">
|
||||
<a name="//api/name/configureContentView:forCellNode:" title="configureContentView:forCellNode:"></a>
|
||||
<h3 class="subsubtitle method-title">configureContentView:forCellNode:</h3>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Add the sized node for <code>indexPath</code> as a subview of <code>contentView</code>.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (void)configureContentView:(id)<em>contentView</em> forCellNode:(id)<em>node</em></code></div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection arguments-section parameters">
|
||||
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
||||
|
||||
<dl class="argument-def parameter-def">
|
||||
<dt><em>contentView</em></dt>
|
||||
<dd><p>UIView to add a (sized) node’s view to.</p></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="argument-def parameter-def">
|
||||
<dt><em>node</em></dt>
|
||||
<dd><p>The ASCellNode to be added.</p></dd>
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<code class="declared-in-ref">ASRangeController.h</code><br />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="section-method">
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/visibleNodeIndexPathsDidChangeWithScrollDirection:" title="visibleNodeIndexPathsDidChangeWithScrollDirection:"></a>
|
||||
<h3 class="subsubtitle method-title">visibleNodeIndexPathsDidChangeWithScrollDirection:</h3>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Notify the receiver that the visible range has been updated.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h3 class="method-title"><code><a href="#//api/name/visibleNodeIndexPathsDidChangeWithScrollDirection:">– visibleNodeIndexPathsDidChangeWithScrollDirection:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (void)visibleNodeIndexPathsDidChangeWithScrollDirection:(id)<em>scrollDirection</em></code></div>
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection see-also-section">
|
||||
<h4 class="method-subtitle">See Also</h4>
|
||||
<ul>
|
||||
<div class="method-info-container">
|
||||
|
||||
<li><code><p><a href="../Protocols/ASRangeControllerDelegate.html#//api/name/rangeControllerVisibleNodeIndexPaths:">[ASRangeControllerDelegate rangeControllerVisibleNodeIndexPaths:]</a></p></code></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<code class="declared-in-ref">ASRangeController.h</code><br />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</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 />
|
||||
|
||||
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Notify the range controller that the visible range has been updated.
|
||||
This is the primary input call that drives updating the working ranges, and triggering their actions.</p>
|
||||
</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');
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (void)visibleNodeIndexPathsDidChangeWithScrollDirection:(ASScrollDirection)<em>scrollDirection</em></code></div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection arguments-section parameters">
|
||||
<h4 class="method-subtitle parameter-title">Parameters</h4>
|
||||
<table class="argument-def parameter-def">
|
||||
|
||||
if (this.getAttribute('class') == 'open')
|
||||
{
|
||||
this.setAttribute('class', '');
|
||||
contents.setAttribute('class', '');
|
||||
tocContainer.setAttribute('class', '');
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>scrollDirection</code></th>
|
||||
<td><p>The current scroll direction of the scroll view.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection see-also-section">
|
||||
<h4 class="method-subtitle">See Also</h4>
|
||||
<ul>
|
||||
|
||||
window.name = "hideTOC";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.setAttribute('class', 'open');
|
||||
contents.setAttribute('class', 'isShowingTOC');
|
||||
tocContainer.setAttribute('class', 'isShowingTOC');
|
||||
<li><code><p><a href="../Protocols/ASRangeControllerDelegate.html#//api/name/rangeControllerVisibleNodeIndexPaths:">[ASRangeControllerDelegate rangeControllerVisibleNodeIndexPaths:]</a></p></code></li>
|
||||
|
||||
window.name = "";
|
||||
}
|
||||
return false;
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
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;
|
||||
}
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASRangeController.h</code></p>
|
||||
</div>
|
||||
|
||||
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;
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/configureContentView:forCellNode:" title="configureContentView:forCellNode:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/configureContentView:forCellNode:">– configureContentView:forCellNode:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
// 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 class="method-subsection brief-description">
|
||||
<p>Add the sized node for <code>indexPath</code> as a subview of <code>contentView</code>.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>- (void)configureContentView:(UIView *)<em>contentView</em> forCellNode:(ASCellNode *)<em>node</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>contentView</code></th>
|
||||
<td><p>UIView to add a (sized) node’s view to.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>node</code></th>
|
||||
<td><p>The ASCellNode to be added.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASRangeController.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/delegate" title="delegate"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/delegate"> delegate</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Delegate and ultimate data source. Must not be nil.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, weak) id<ASRangeControllerDelegate> delegate</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASRangeController.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
139
appledoc/Classes/ASRatioLayoutSpec.html
Normal file
139
appledoc/Classes/ASRatioLayoutSpec.html
Normal file
@@ -0,0 +1,139 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASRatioLayoutSpec Class 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">
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASRatioLayoutSpec Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASLayoutSpec.html">ASLayoutSpec</a> : NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASRatioLayoutSpec.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>Ratio layout spec
|
||||
For when the content should respect a certain inherent ratio but can be scaled (think photos or videos)
|
||||
The ratio passed is the ratio of height / width you expect</p>
|
||||
|
||||
<p>For a ratio 0.5, the spec will have a flat rectangle shape</p>
|
||||
|
||||
<hr />
|
||||
|
||||
<p>| |
|
||||
|<em> _ _ </em>|</p>
|
||||
|
||||
<p>For a ratio 2.0, the spec will be twice as tall as it is wide
|
||||
_ _
|
||||
| |
|
||||
| |
|
||||
| |
|
||||
|<em> </em>|</p>
|
||||
|
||||
<p>*</p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
183
appledoc/Classes/ASScrollNode.html
Normal file
183
appledoc/Classes/ASScrollNode.html
Normal file
@@ -0,0 +1,183 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASScrollNode Class 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">
|
||||
|
||||
<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="Properties">
|
||||
|
||||
<option value="//api/name/view">view</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASScrollNode Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASDisplayNode.html">ASDisplayNode</a> : ASDealloc2MainObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASScrollNode.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>Simple node that wraps UIScrollView.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/view" title="view"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/view"> view</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>The node’s UIScrollView.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly, strong) UIScrollView *view</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASScrollNode.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
228
appledoc/Classes/ASStackLayoutSpec.html
Normal file
228
appledoc/Classes/ASStackLayoutSpec.html
Normal file
@@ -0,0 +1,228 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASStackLayoutSpec Class 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">
|
||||
|
||||
<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="Class Methods">
|
||||
|
||||
<option value="//api/name/newWithStyle:children:">+ newWithStyle:children:</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASStackLayoutSpec Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASLayoutSpec.html">ASLayoutSpec</a> : NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASStackLayoutSpec.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>A simple layout spec that stacks a list of children vertically or horizontally.</p>
|
||||
|
||||
<ul>
|
||||
<li>All children are initially laid out with the an infinite available size in the stacking direction.</li>
|
||||
<li>In the other direction, this spec’s constraint is passed.</li>
|
||||
<li>The children’s sizes are summed in the stacking direction.
|
||||
|
||||
<ul>
|
||||
<li>If this sum is less than this spec’s minimum size in stacking direction, children with flexGrow are flexed.</li>
|
||||
<li>If it is greater than this spec’s maximum size in the stacking direction, children with flexShrink are flexed.</li>
|
||||
<li>If, even after flexing, the sum is still greater than this spec’s maximum size in the stacking direction,
|
||||
justifyContent determines how children are laid out.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<p>For example:</p>
|
||||
|
||||
<ul>
|
||||
<li>Suppose stacking direction is Vertical, min-width=100, max-width=300, min-height=200, max-height=500.</li>
|
||||
<li>All children are laid out with min-width=100, max-width=300, min-height=0, max-height=INFINITY.</li>
|
||||
<li>If the sum of the childrens' heights is less than 200, children with flexGrow are flexed larger.</li>
|
||||
<li>If the sum of the childrens' heights is greater than 500, children with flexShrink are flexed smaller.
|
||||
Each child is shrunk by <code>((sum of heights) - 500)/(number of flexShrink-able children)</code>.</li>
|
||||
<li>If the sum of the childrens' heights is greater than 500 even after flexShrink-able children are flexed,
|
||||
justifyContent determines how children are laid out.</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/newWithStyle:children:" title="newWithStyle:children:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithStyle:children:">+ newWithStyle:children:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Specifies how children are laid out.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithStyle:(ASStackLayoutSpecStyle)<em>style</em> children:(NSArray *)<em>children</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>style</code></th>
|
||||
<td><p>Specifies how children are laid out.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>children</code></th>
|
||||
<td><p>ASLayoutable children to be positioned.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASStackLayoutSpec.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
197
appledoc/Classes/ASStaticLayoutSpec.html
Normal file
197
appledoc/Classes/ASStaticLayoutSpec.html
Normal file
@@ -0,0 +1,197 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASStaticLayoutSpec Class 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">
|
||||
|
||||
<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="Class Methods">
|
||||
|
||||
<option value="//api/name/newWithChildren:">+ newWithChildren:</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASStaticLayoutSpec Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASLayoutSpec.html">ASLayoutSpec</a> : NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASStaticLayoutSpec.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>A layout spec that positions children at fixed positions.</p>
|
||||
|
||||
<p>Computes a size that is the union of all childrens' frames.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/newWithChildren:" title="newWithChildren:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithChildren:">+ newWithChildren:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Children to be positioned at fixed positions, each is of type ASStaticLayoutSpecChild.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithChildren:(NSArray *)<em>children</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>children</code></th>
|
||||
<td><p>Children to be positioned at fixed positions, each is of type ASStaticLayoutSpecChild.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASStaticLayoutSpec.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
314
appledoc/Classes/ASStaticLayoutSpecChild.html
Normal file
314
appledoc/Classes/ASStaticLayoutSpecChild.html
Normal file
@@ -0,0 +1,314 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>ASStaticLayoutSpecChild Class 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">
|
||||
|
||||
<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="Properties">
|
||||
|
||||
<option value="//api/name/size">size</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
<optgroup label="Class Methods">
|
||||
|
||||
<option value="//api/name/newWithPosition:layoutableObject:">+ newWithPosition:layoutableObject:</option>
|
||||
|
||||
<option value="//api/name/newWithPosition:layoutableObject:size:">+ newWithPosition:layoutableObject:size:</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
|
||||
|
||||
|
||||
</select>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<article>
|
||||
<div id="overview_contents" class="container">
|
||||
<div id="content">
|
||||
<main role="main">
|
||||
<h1 class="title">ASStaticLayoutSpecChild Class Reference</h1>
|
||||
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<th>Inherits from</th>
|
||||
<td>NSObject</td>
|
||||
</tr><tr>
|
||||
<th>Declared in</th>
|
||||
<td>ASStaticLayoutSpec.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
<a title="Overview" name="overview"></a>
|
||||
<h2 class="subtitle subtitle-overview">Overview</h2>
|
||||
<p>An ASStaticLayoutSpecChild object wraps an ASLayoutable object and provides position and size information,
|
||||
to be used as a child of an ASStaticLayoutSpec.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/size" title="size"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/size"> size</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>If specified, the child’s size is restricted according to this size. Percentages are resolved relative to the static layout spec.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) ASRelativeSizeRange size</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASStaticLayoutSpec.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/newWithPosition:layoutableObject:size:" title="newWithPosition:layoutableObject:size:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithPosition:layoutableObject:size:">+ newWithPosition:layoutableObject:size:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Initializer.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithPosition:(CGPoint)<em>position</em> layoutableObject:(id<ASLayoutable>)<em>layoutableObject</em> size:(ASRelativeSizeRange)<em>size</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>position</code></th>
|
||||
<td><p>The position of this child within its parent spec.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>layoutableObject</code></th>
|
||||
<td><p>The backing ASLayoutable object of this child.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>size</code></th>
|
||||
<td><p>The size range that this child’s size is trstricted according to.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASStaticLayoutSpec.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div><div class="section-method">
|
||||
<a name="//api/name/newWithPosition:layoutableObject:" title="newWithPosition:layoutableObject:"></a>
|
||||
<h3 class="method-title"><code><a href="#//api/name/newWithPosition:layoutableObject:">+ newWithPosition:layoutableObject:</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Convenience initializer with default size is Unconstrained in both dimensions, which sets the child’s min size to zero
|
||||
and max size to the maximum available space it can consume without overflowing the spec’s bounds.</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>+ (instancetype)newWithPosition:(CGPoint)<em>position</em> layoutableObject:(id<ASLayoutable>)<em>layoutableObject</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>position</code></th>
|
||||
<td><p>The position of this child within its parent spec.</p></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th scope="row" class="argument-name"><code>layoutableObject</code></th>
|
||||
<td><p>The backing ASLayoutable object of this child.</p></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASStaticLayoutSpec.h</code></p>
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,112 +1,96 @@
|
||||
<!DOCTYPE HTML>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
|
||||
<title>ASTextCellNode Class 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>ASTextCellNode Class 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">ASTextCellNode Class 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="Properties">
|
||||
|
||||
<option value="//api/name/text">text</option>
|
||||
|
||||
</optgroup>
|
||||
|
||||
<option value="properties">Properties</option>
|
||||
|
||||
<option value="//api/name/text"> text</option>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</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">ASTextCellNode Class Reference</h1>
|
||||
|
||||
|
||||
|
||||
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
|
||||
|
||||
</ul></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
|
||||
|
||||
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/text">text</a></span></li>
|
||||
|
||||
</ul></li>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<article>
|
||||
<div id="contents" class="isShowingTOC" role="main">
|
||||
<a title="ASTextCellNode Class 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">ASTextCellNode Class Reference</h1>
|
||||
</div>
|
||||
</div>
|
||||
<div id="container">
|
||||
|
||||
<div class="section section-specification"><table cellspacing="0"><tbody>
|
||||
<tr>
|
||||
<td class="specification-title">Inherits from</td>
|
||||
<td class="specification-value"><a href="../Classes/ASCellNode.html">ASCellNode</a> : <a href="../Classes/ASDisplayNode.html">ASDisplayNode</a> : ASDealloc2MainObject</td>
|
||||
<th>Inherits from</th>
|
||||
<td><a href="../Classes/ASCellNode.html">ASCellNode</a> : <a href="../Classes/ASDisplayNode.html">ASDisplayNode</a> : ASDealloc2MainObject</td>
|
||||
</tr><tr>
|
||||
<td class="specification-title">Declared in</td>
|
||||
<td class="specification-value">ASCellNode.h</td>
|
||||
<th>Declared in</th>
|
||||
<td>ASCellNode.h</td>
|
||||
</tr>
|
||||
</tbody></table></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-overview">
|
||||
@@ -116,193 +100,84 @@
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-tasks">
|
||||
<a title="Tasks" name="tasks"></a>
|
||||
<h2 class="subtitle subtitle-tasks">Tasks</h2>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="task-list">
|
||||
<li>
|
||||
<span class="tooltip">
|
||||
<code><a href="#//api/name/text"> text</a></code>
|
||||
</span>
|
||||
<span class="task-item-suffix">property</span>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="section section-methods">
|
||||
<a title="Properties" name="properties"></a>
|
||||
<h2 class="subtitle subtitle-methods">Properties</h2>
|
||||
|
||||
<div class="section-method">
|
||||
<div class="task-list">
|
||||
<div class="section-method">
|
||||
<a name="//api/name/text" title="text"></a>
|
||||
<h3 class="subsubtitle method-title">text</h3>
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Text to display.</p>
|
||||
</div>
|
||||
|
||||
|
||||
<h3 class="method-title"><code><a href="#//api/name/text"> text</a></code>
|
||||
</h3>
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, copy) NSString *text</code></div>
|
||||
<div class="method-info">
|
||||
<div class="pointy-thing"></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<code class="declared-in-ref">ASCellNode.h</code><br />
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</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 />
|
||||
|
||||
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="method-info-container">
|
||||
|
||||
|
||||
<div class="method-subsection brief-description">
|
||||
<p>Text to display.</p>
|
||||
</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', '');
|
||||
|
||||
|
||||
<div class="method-subsection method-declaration"><code>@property (nonatomic, copy) NSString *text</code></div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="method-subsection declared-in-section">
|
||||
<h4 class="method-subtitle">Declared In</h4>
|
||||
<p><code class="declared-in-ref">ASCellNode.h</code></p>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
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>
|
||||
|
||||
|
||||
|
||||
|
||||
</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>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<script src="../js/script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user