Files
RETableViewManager/Documentation/html/Classes/RETableViewManager.html
2013-07-16 11:32:56 -05:00

2421 lines
72 KiB
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
<title>RETableViewManager Class Reference</title>
<meta id="xcode-display" name="xcode-display" content="render"/>
<meta name="viewport" content="width=550" />
<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.1 (build 840)" />
</head>
<body>
<header id="top_header">
<div id="library" class="hideInXcode">
<h1><a id="libraryTitle" href="../index.html">RETableViewManager </a></h1>
<a id="developerHome" href="../index.html">Roman Efimov</a>
</div>
<div id="title" role="banner">
<h1 class="hideInXcode">RETableViewManager 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">
<option value="top">Jump To&#133;</option>
<option value="overview">Overview</option>
<option value="tasks">Tasks</option>
<option value="properties">Properties</option>
<option value="//api/name/delegate">&nbsp;&nbsp;&nbsp;&nbsp;delegate</option>
<option value="//api/name/registeredClasses">&nbsp;&nbsp;&nbsp;&nbsp;registeredClasses</option>
<option value="//api/name/sections">&nbsp;&nbsp;&nbsp;&nbsp;sections</option>
<option value="//api/name/style">&nbsp;&nbsp;&nbsp;&nbsp;style</option>
<option value="//api/name/tableView">&nbsp;&nbsp;&nbsp;&nbsp;tableView</option>
<option value="instance_methods">Instance Methods</option>
<option value="//api/name/addSection:">&nbsp;&nbsp;&nbsp;&nbsp;- addSection:</option>
<option value="//api/name/addSectionsFromArray:">&nbsp;&nbsp;&nbsp;&nbsp;- addSectionsFromArray:</option>
<option value="//api/name/classForCellAtIndexPath:">&nbsp;&nbsp;&nbsp;&nbsp;- classForCellAtIndexPath:</option>
<option value="//api/name/exchangeSectionAtIndex:withSectionAtIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- exchangeSectionAtIndex:withSectionAtIndex:</option>
<option value="//api/name/initWithTableView:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithTableView:</option>
<option value="//api/name/initWithTableView:delegate:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithTableView:delegate:</option>
<option value="//api/name/insertSection:atIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- insertSection:atIndex:</option>
<option value="//api/name/insertSections:atIndexes:">&nbsp;&nbsp;&nbsp;&nbsp;- insertSections:atIndexes:</option>
<option value="//api/name/objectAtKeyedSubscript:">&nbsp;&nbsp;&nbsp;&nbsp;- objectAtKeyedSubscript:</option>
<option value="//api/name/registerClass:forCellWithReuseIdentifier:">&nbsp;&nbsp;&nbsp;&nbsp;- registerClass:forCellWithReuseIdentifier:</option>
<option value="//api/name/removeAllSections">&nbsp;&nbsp;&nbsp;&nbsp;- removeAllSections</option>
<option value="//api/name/removeLastSection">&nbsp;&nbsp;&nbsp;&nbsp;- removeLastSection</option>
<option value="//api/name/removeSection:">&nbsp;&nbsp;&nbsp;&nbsp;- removeSection:</option>
<option value="//api/name/removeSection:inRange:">&nbsp;&nbsp;&nbsp;&nbsp;- removeSection:inRange:</option>
<option value="//api/name/removeSectionAtIndex:">&nbsp;&nbsp;&nbsp;&nbsp;- removeSectionAtIndex:</option>
<option value="//api/name/removeSectionIdenticalTo:">&nbsp;&nbsp;&nbsp;&nbsp;- removeSectionIdenticalTo:</option>
<option value="//api/name/removeSectionIdenticalTo:inRange:">&nbsp;&nbsp;&nbsp;&nbsp;- removeSectionIdenticalTo:inRange:</option>
<option value="//api/name/removeSectionsAtIndexes:">&nbsp;&nbsp;&nbsp;&nbsp;- removeSectionsAtIndexes:</option>
<option value="//api/name/removeSectionsInArray:">&nbsp;&nbsp;&nbsp;&nbsp;- removeSectionsInArray:</option>
<option value="//api/name/removeSectionsInRange:">&nbsp;&nbsp;&nbsp;&nbsp;- removeSectionsInRange:</option>
<option value="//api/name/replaceSectionAtIndex:withSection:">&nbsp;&nbsp;&nbsp;&nbsp;- replaceSectionAtIndex:withSection:</option>
<option value="//api/name/replaceSectionsAtIndexes:withSections:">&nbsp;&nbsp;&nbsp;&nbsp;- replaceSectionsAtIndexes:withSections:</option>
<option value="//api/name/replaceSectionsInRange:withSectionsFromArray:">&nbsp;&nbsp;&nbsp;&nbsp;- replaceSectionsInRange:withSectionsFromArray:</option>
<option value="//api/name/replaceSectionsInRange:withSectionsFromArray:range:">&nbsp;&nbsp;&nbsp;&nbsp;- replaceSectionsInRange:withSectionsFromArray:range:</option>
<option value="//api/name/replaceSectionsWithSectionsFromArray:">&nbsp;&nbsp;&nbsp;&nbsp;- replaceSectionsWithSectionsFromArray:</option>
<option value="//api/name/setObject:forKeyedSubscript:">&nbsp;&nbsp;&nbsp;&nbsp;- setObject:forKeyedSubscript:</option>
<option value="//api/name/sortSectionsUsingFunction:context:">&nbsp;&nbsp;&nbsp;&nbsp;- sortSectionsUsingFunction:context:</option>
<option value="//api/name/sortSectionsUsingSelector:">&nbsp;&nbsp;&nbsp;&nbsp;- sortSectionsUsingSelector:</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>
<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Managing Table View and Sections">Managing Table View and Sections</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating and Initializing a RETableViewManager">Creating and Initializing a RETableViewManager</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Managing the Delegate">Managing the Delegate</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Managing Custom Cells">Managing Custom Cells</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Setting Style">Setting Style</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Adding sections">Adding sections</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Removing Sections">Removing Sections</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Replacing Sections">Replacing Sections</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Rearranging Sections">Rearranging Sections</a></span></li>
</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>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/registeredClasses">registeredClasses</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/sections">sections</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/style">style</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/tableView">tableView</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/addSection:">addSection:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/addSectionsFromArray:">addSectionsFromArray:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/classForCellAtIndexPath:">classForCellAtIndexPath:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/exchangeSectionAtIndex:withSectionAtIndex:">exchangeSectionAtIndex:withSectionAtIndex:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithTableView:">initWithTableView:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithTableView:delegate:">initWithTableView:delegate:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/insertSection:atIndex:">insertSection:atIndex:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/insertSections:atIndexes:">insertSections:atIndexes:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/objectAtKeyedSubscript:">objectAtKeyedSubscript:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/registerClass:forCellWithReuseIdentifier:">registerClass:forCellWithReuseIdentifier:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeAllSections">removeAllSections</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeLastSection">removeLastSection</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeSection:">removeSection:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeSection:inRange:">removeSection:inRange:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeSectionAtIndex:">removeSectionAtIndex:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeSectionIdenticalTo:">removeSectionIdenticalTo:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeSectionIdenticalTo:inRange:">removeSectionIdenticalTo:inRange:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeSectionsAtIndexes:">removeSectionsAtIndexes:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeSectionsInArray:">removeSectionsInArray:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/removeSectionsInRange:">removeSectionsInRange:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/replaceSectionAtIndex:withSection:">replaceSectionAtIndex:withSection:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/replaceSectionsAtIndexes:withSections:">replaceSectionsAtIndexes:withSections:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/replaceSectionsInRange:withSectionsFromArray:">replaceSectionsInRange:withSectionsFromArray:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/replaceSectionsInRange:withSectionsFromArray:range:">replaceSectionsInRange:withSectionsFromArray:range:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/replaceSectionsWithSectionsFromArray:">replaceSectionsWithSectionsFromArray:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/setObject:forKeyedSubscript:">setObject:forKeyedSubscript:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/sortSectionsUsingFunction:context:">sortSectionsUsingFunction:context:</a></span></li>
<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/sortSectionsUsingSelector:">sortSectionsUsingSelector:</a></span></li>
</ul></li>
</ul>
</nav>
<article>
<div id="contents" class="isShowingTOC" role="main">
<a title="RETableViewManager 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">RETableViewManager 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">NSObject</td>
</tr><tr>
<td class="specification-title">Conforms to</td>
<td class="specification-value">UITableViewDataSource<br />UITableViewDelegate</td>
</tr><tr>
<td class="specification-title">Declared in</td>
<td class="specification-value">RETableViewManager.h<br />RETableViewManager.m</td>
</tr>
</tbody></table></div>
<div class="section section-overview">
<a title="Overview" name="overview"></a>
<h2 class="subtitle subtitle-overview">Overview</h2>
<p><code>RETableViewManager</code> allows to manage the content of any <code>UITableView</code> with ease, both forms and lists. <code>RETableViewManager</code> is built on top of reusable cells technique and provides
APIs for mapping any object class to any custom cell subclass.</p>
<p>The general idea is to allow developers to use their own <code>UITableView</code> and <code>UITableViewController</code> instances, providing a layer that synchronizes data with cell appereance.
It fully implements <code>UITableViewDelegate</code> and <code>UITableViewDataSource</code> protocols so you don&rsquo;t have to.</p>
</div>
<div class="section section-tasks">
<a title="Tasks" name="tasks"></a>
<h2 class="subtitle subtitle-tasks">Tasks</h2>
<a title="Managing Table View and Sections" name="task_Managing Table View and Sections"></a>
<h3 class="subsubtitle task-title">Managing Table View and Sections</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/sections">&nbsp;&nbsp;sections</a></code>
<span class="tooltip"><p>The array of sections. See <a href="../Classes/RETableViewSection.html">RETableViewSection</a> reference for details.</p></span>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/tableView">&nbsp;&nbsp;tableView</a></code>
<span class="tooltip"><p>The <code>UITableView</code> that needs to be managed using this <code>RETableViewManager</code>.</p></span>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<a title="Creating and Initializing a RETableViewManager" name="task_Creating and Initializing a RETableViewManager"></a>
<h3 class="subsubtitle task-title">Creating and Initializing a RETableViewManager</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/initWithTableView:delegate:">&ndash;&nbsp;initWithTableView:delegate:</a></code>
<span class="tooltip"><p>Initialize a table view manager object for a specific <code>UITableView</code> and specify the <a href="#//api/name/delegate">delegate</a> object.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/initWithTableView:">&ndash;&nbsp;initWithTableView:</a></code>
<span class="tooltip"><p>Initialize a table view manager object for a specific <code>UITableView</code>.</p></span>
</span>
</li>
</ul>
<a title="Managing the Delegate" name="task_Managing the Delegate"></a>
<h3 class="subsubtitle task-title">Managing the Delegate</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/delegate">&nbsp;&nbsp;delegate</a></code>
<span class="tooltip"><p>The object that acts as the delegate of the receiving table view.</p></span>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<a title="Managing Custom Cells" name="task_Managing Custom Cells"></a>
<h3 class="subsubtitle task-title">Managing Custom Cells</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/registeredClasses">&nbsp;&nbsp;registeredClasses</a></code>
<span class="tooltip"><p>The array of pairs of items / cell classes.</p></span>
</span>
<span class="task-item-suffix">property</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/registerClass:forCellWithReuseIdentifier:">&ndash;&nbsp;registerClass:forCellWithReuseIdentifier:</a></code>
<span class="tooltip"><p>For each custom item class that the manager will use, register a cell class.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/classForCellAtIndexPath:">&ndash;&nbsp;classForCellAtIndexPath:</a></code>
<span class="tooltip"><p>Returns cell class at specified index path.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/objectAtKeyedSubscript:">&ndash;&nbsp;objectAtKeyedSubscript:</a></code>
<span class="tooltip"><p>Returns cell class at the keyed subscript.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/setObject:forKeyedSubscript:">&ndash;&nbsp;setObject:forKeyedSubscript:</a></code>
<span class="tooltip"><p>Sets a cell class for the keyed subscript.</p></span>
</span>
</li>
</ul>
<a title="Setting Style" name="task_Setting Style"></a>
<h3 class="subsubtitle task-title">Setting Style</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/style">&nbsp;&nbsp;style</a></code>
<span class="tooltip"><p>The object that provides styling for <code>UITableView</code>. See <a href="../Classes/RETableViewCellStyle.html">RETableViewCellStyle</a> reference for details.</p></span>
</span>
<span class="task-item-suffix">property</span>
</li>
</ul>
<a title="Adding sections" name="task_Adding sections"></a>
<h3 class="subsubtitle task-title">Adding sections</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/addSection:">&ndash;&nbsp;addSection:</a></code>
<span class="tooltip"><p>Inserts a given section at the end of the table view.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/addSectionsFromArray:">&ndash;&nbsp;addSectionsFromArray:</a></code>
<span class="tooltip"><p>Adds the <a href="#//api/name/sections">sections</a> contained in another given <a href="#//api/name/sections">sections</a> array to the end of the table view.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/insertSection:atIndex:">&ndash;&nbsp;insertSection:atIndex:</a></code>
<span class="tooltip"><p>Inserts a given section into the table view at a given index.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/insertSections:atIndexes:">&ndash;&nbsp;insertSections:atIndexes:</a></code>
<span class="tooltip"><p>Inserts the <a href="#//api/name/sections">sections</a> in the provided array into the table view at the specified indexes.</p></span>
</span>
</li>
</ul>
<a title="Removing Sections" name="task_Removing Sections"></a>
<h3 class="subsubtitle task-title">Removing Sections</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/removeSection:">&ndash;&nbsp;removeSection:</a></code>
<span class="tooltip"><p>Removes all occurrences in the table view of a given section.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/removeAllSections">&ndash;&nbsp;removeAllSections</a></code>
<span class="tooltip"><p>Empties the table view of all its <a href="#//api/name/sections">sections</a>.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/removeSectionIdenticalTo:inRange:">&ndash;&nbsp;removeSectionIdenticalTo:inRange:</a></code>
<span class="tooltip"><p>Removes all occurrences of section within the specified range in the table view.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/removeSectionIdenticalTo:">&ndash;&nbsp;removeSectionIdenticalTo:</a></code>
<span class="tooltip"><p>Removes all occurrences of a given section in the <a href="#//api/name/sections">sections</a> array.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/removeSectionsInArray:">&ndash;&nbsp;removeSectionsInArray:</a></code>
<span class="tooltip"><p>Removes from the table view the <a href="#//api/name/sections">sections</a> in another given array.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/removeSectionsInRange:">&ndash;&nbsp;removeSectionsInRange:</a></code>
<span class="tooltip"><p>Removes from the table view each of the <a href="#//api/name/sections">sections</a> within a given range.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/removeSection:inRange:">&ndash;&nbsp;removeSection:inRange:</a></code>
<span class="tooltip"><p>Removes all occurrences within a specified range in the table view of a given section.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/removeLastSection">&ndash;&nbsp;removeLastSection</a></code>
<span class="tooltip"><p>Removes the section with the highest-valued index in the table view.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/removeSectionAtIndex:">&ndash;&nbsp;removeSectionAtIndex:</a></code>
<span class="tooltip"><p>Removes the section at index.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/removeSectionsAtIndexes:">&ndash;&nbsp;removeSectionsAtIndexes:</a></code>
<span class="tooltip"><p>Removes the <a href="#//api/name/sections">sections</a> at the specified indexes from the table view.</p></span>
</span>
</li>
</ul>
<a title="Replacing Sections" name="task_Replacing Sections"></a>
<h3 class="subsubtitle task-title">Replacing Sections</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/replaceSectionAtIndex:withSection:">&ndash;&nbsp;replaceSectionAtIndex:withSection:</a></code>
<span class="tooltip"><p>Replaces the section at index with <code>section</code>.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/replaceSectionsWithSectionsFromArray:">&ndash;&nbsp;replaceSectionsWithSectionsFromArray:</a></code>
<span class="tooltip"><p>Replaces the <a href="#//api/name/sections">sections</a> in the table view with all of the <a href="#//api/name/sections">sections</a> from a given array.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/replaceSectionsAtIndexes:withSections:">&ndash;&nbsp;replaceSectionsAtIndexes:withSections:</a></code>
<span class="tooltip"><p>Replaces the <a href="#//api/name/sections">sections</a> in the table view at specified locations specified with the <a href="#//api/name/sections">sections</a> from a given array.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/replaceSectionsInRange:withSectionsFromArray:range:">&ndash;&nbsp;replaceSectionsInRange:withSectionsFromArray:range:</a></code>
<span class="tooltip"><p>Replaces the <a href="#//api/name/sections">sections</a> in the table view by one given range with the <a href="#//api/name/sections">sections</a> in another array specified by another range.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/replaceSectionsInRange:withSectionsFromArray:">&ndash;&nbsp;replaceSectionsInRange:withSectionsFromArray:</a></code>
<span class="tooltip"><p>Replaces the <a href="#//api/name/sections">sections</a> in the table view specified by a given range with all of the <a href="#//api/name/sections">sections</a> from a given array.</p></span>
</span>
</li>
</ul>
<a title="Rearranging Sections" name="task_Rearranging Sections"></a>
<h3 class="subsubtitle task-title">Rearranging Sections</h3>
<ul class="task-list">
<li>
<span class="tooltip">
<code><a href="#//api/name/exchangeSectionAtIndex:withSectionAtIndex:">&ndash;&nbsp;exchangeSectionAtIndex:withSectionAtIndex:</a></code>
<span class="tooltip"><p>Exchanges the <a href="#//api/name/sections">sections</a> in the table view at given indices.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/sortSectionsUsingFunction:context:">&ndash;&nbsp;sortSectionsUsingFunction:context:</a></code>
<span class="tooltip"><p>Sorts the <a href="#//api/name/sections">sections</a> in ascending order as defined by the comparison function compare.</p></span>
</span>
</li><li>
<span class="tooltip">
<code><a href="#//api/name/sortSectionsUsingSelector:">&ndash;&nbsp;sortSectionsUsingSelector:</a></code>
<span class="tooltip"><p>Sorts the <a href="#//api/name/sections">sections</a> in ascending order, as determined by the comparison method specified by a given selector.</p></span>
</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>The object that acts as the delegate of the receiving table view.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (assign, readwrite, nonatomic) id&lt;RETableViewManagerDelegate,UITableViewDelegate&gt; delegate</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The object that acts as the delegate of the receiving table view.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/registeredClasses" title="registeredClasses"></a>
<h3 class="subsubtitle method-title">registeredClasses</h3>
<div class="method-subsection brief-description">
<p>The array of pairs of items / cell classes.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (strong, readwrite, nonatomic) NSMutableDictionary *registeredClasses</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The array of pairs of items / cell classes.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/sections" title="sections"></a>
<h3 class="subsubtitle method-title">sections</h3>
<div class="method-subsection brief-description">
<p>The array of sections. See <a href="../Classes/RETableViewSection.html">RETableViewSection</a> reference for details.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (strong, readwrite, nonatomic) NSMutableArray *sections</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The array of sections. See <a href="../Classes/RETableViewSection.html">RETableViewSection</a> reference for details.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/style" title="style"></a>
<h3 class="subsubtitle method-title">style</h3>
<div class="method-subsection brief-description">
<p>The object that provides styling for <code>UITableView</code>. See <a href="../Classes/RETableViewCellStyle.html">RETableViewCellStyle</a> reference for details.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (strong, readwrite, nonatomic) RETableViewCellStyle *style</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The object that provides styling for <code>UITableView</code>. See <a href="../Classes/RETableViewCellStyle.html">RETableViewCellStyle</a> reference for details.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/tableView" title="tableView"></a>
<h3 class="subsubtitle method-title">tableView</h3>
<div class="method-subsection brief-description">
<p>The <code>UITableView</code> that needs to be managed using this <code>RETableViewManager</code>.</p>
</div>
<div class="method-subsection method-declaration"><code>@property (weak, readwrite, nonatomic) UITableView *tableView</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>The <code>UITableView</code> that needs to be managed using this <code>RETableViewManager</code>.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.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/addSection:" title="addSection:"></a>
<h3 class="subsubtitle method-title">addSection:</h3>
<div class="method-subsection brief-description">
<p>Inserts a given section at the end of the table view.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)addSection:(RETableViewSection *)<em>section</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>section</em></dt>
<dd><p>The section to add to the end of the table view. This value must not be <code>nil</code>.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Inserts a given section at the end of the table view.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/addSectionsFromArray:" title="addSectionsFromArray:"></a>
<h3 class="subsubtitle method-title">addSectionsFromArray:</h3>
<div class="method-subsection brief-description">
<p>Adds the <a href="#//api/name/sections">sections</a> contained in another given <a href="#//api/name/sections">sections</a> array to the end of the table view.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)addSectionsFromArray:(NSArray *)<em>array</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>array</em></dt>
<dd><p>An array of <a href="#//api/name/sections">sections</a> to add to the end of the table view.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Adds the <a href="#//api/name/sections">sections</a> contained in another given <a href="#//api/name/sections">sections</a> array to the end of the table view.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/classForCellAtIndexPath:" title="classForCellAtIndexPath:"></a>
<h3 class="subsubtitle method-title">classForCellAtIndexPath:</h3>
<div class="method-subsection brief-description">
<p>Returns cell class at specified index path.</p>
</div>
<div class="method-subsection method-declaration"><code>- (Class)classForCellAtIndexPath:(NSIndexPath *)<em>indexPath</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>indexPath</em></dt>
<dd><p>The index path of cell.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Returns cell class at specified index path.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/exchangeSectionAtIndex:withSectionAtIndex:" title="exchangeSectionAtIndex:withSectionAtIndex:"></a>
<h3 class="subsubtitle method-title">exchangeSectionAtIndex:withSectionAtIndex:</h3>
<div class="method-subsection brief-description">
<p>Exchanges the <a href="#//api/name/sections">sections</a> in the table view at given indices.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)exchangeSectionAtIndex:(NSUInteger)<em>idx1</em> withSectionAtIndex:(NSUInteger)<em>idx2</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>idx1</em></dt>
<dd><p>The index of the section with which to replace the section at index idx2.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>idx2</em></dt>
<dd><p>The index of the section with which to replace the section at index idx1.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Exchanges the <a href="#//api/name/sections">sections</a> in the table view at given indices.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/initWithTableView:" title="initWithTableView:"></a>
<h3 class="subsubtitle method-title">initWithTableView:</h3>
<div class="method-subsection brief-description">
<p>Initialize a table view manager object for a specific <code>UITableView</code>.</p>
</div>
<div class="method-subsection method-declaration"><code>- (id)initWithTableView:(UITableView *)<em>tableView</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>tableView</em></dt>
<dd><p>The UITableView that needs to be managed.</p></dd>
</dl>
</div>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
<p>The pointer to the instance, or <code>nil</code> if initialization failed.</p>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Initialize a table view manager object for a specific <code>UITableView</code>.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/initWithTableView:delegate:" title="initWithTableView:delegate:"></a>
<h3 class="subsubtitle method-title">initWithTableView:delegate:</h3>
<div class="method-subsection brief-description">
<p>Initialize a table view manager object for a specific <code>UITableView</code> and specify the <a href="#//api/name/delegate">delegate</a> object.</p>
</div>
<div class="method-subsection method-declaration"><code>- (id)initWithTableView:(UITableView *)<em>tableView</em> delegate:(id&lt;RETableViewManagerDelegate,UITableViewDelegate&gt;)<em>delegate</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>tableView</em></dt>
<dd><p>The <code>UITableView</code> that needs to be managed.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>delegate</em></dt>
<dd><p>The <a href="#//api/name/delegate">delegate</a> (<a href="../Protocols/RETableViewManagerDelegate.html">RETableViewManagerDelegate</a>) object for the table view manager.</p></dd>
</dl>
</div>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
<p>The pointer to the instance, or nil if initialization failed.</p>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Initialize a table view manager object for a specific <code>UITableView</code> and specify the <a href="#//api/name/delegate">delegate</a> object.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/insertSection:atIndex:" title="insertSection:atIndex:"></a>
<h3 class="subsubtitle method-title">insertSection:atIndex:</h3>
<div class="method-subsection brief-description">
<p>Inserts a given section into the table view at a given index.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)insertSection:(RETableViewSection *)<em>section</em> atIndex:(NSUInteger)<em>index</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>section</em></dt>
<dd><p>The section to add to the table view. This value must not be nil.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>index</em></dt>
<dd><p>The index in the <a href="#//api/name/sections">sections</a> array at which to insert section. This value must not be greater than the count of <a href="#//api/name/sections">sections</a> in the table view.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Inserts a given section into the table view at a given index.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/insertSections:atIndexes:" title="insertSections:atIndexes:"></a>
<h3 class="subsubtitle method-title">insertSections:atIndexes:</h3>
<div class="method-subsection brief-description">
<p>Inserts the <a href="#//api/name/sections">sections</a> in the provided array into the table view at the specified indexes.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)insertSections:(NSArray *)<em>sections</em> atIndexes:(NSIndexSet *)<em>indexes</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>sections</em></dt>
<dd><p>An array of <a href="#//api/name/sections">sections</a> to insert into the table view.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>indexes</em></dt>
<dd><p>The indexes at which the <a href="#//api/name/sections">sections</a> in <a href="#//api/name/sections">sections</a> should be inserted. The count of locations in indexes must equal the count of <a href="#//api/name/sections">sections</a>.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Inserts the <a href="#//api/name/sections">sections</a> in the provided array into the table view at the specified indexes.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/objectAtKeyedSubscript:" title="objectAtKeyedSubscript:"></a>
<h3 class="subsubtitle method-title">objectAtKeyedSubscript:</h3>
<div class="method-subsection brief-description">
<p>Returns cell class at the keyed subscript.</p>
</div>
<div class="method-subsection method-declaration"><code>- (id)objectAtKeyedSubscript:(id&lt;NSCopying&gt;)<em>key</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>key</em></dt>
<dd><p>The keyed subscript.</p></dd>
</dl>
</div>
<div class="method-subsection return">
<h4 class="method-subtitle parameter-title">Return Value</h4>
<p>The cell class the keyed subscript.</p>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Returns cell class at the keyed subscript.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/registerClass:forCellWithReuseIdentifier:" title="registerClass:forCellWithReuseIdentifier:"></a>
<h3 class="subsubtitle method-title">registerClass:forCellWithReuseIdentifier:</h3>
<div class="method-subsection brief-description">
<p>For each custom item class that the manager will use, register a cell class.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)registerClass:(NSString *)<em>objectClass</em> forCellWithReuseIdentifier:(NSString *)<em>identifier</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>objectClass</em></dt>
<dd><p>The object class to be associated with a cell class.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>identifier</em></dt>
<dd><p>The cell class identifier.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>For each custom item class that the manager will use, register a cell class.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeAllSections" title="removeAllSections"></a>
<h3 class="subsubtitle method-title">removeAllSections</h3>
<div class="method-subsection brief-description">
<p>Empties the table view of all its <a href="#//api/name/sections">sections</a>.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeAllSections</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Empties the table view of all its <a href="#//api/name/sections">sections</a>.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeLastSection" title="removeLastSection"></a>
<h3 class="subsubtitle method-title">removeLastSection</h3>
<div class="method-subsection brief-description">
<p>Removes the section with the highest-valued index in the table view.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeLastSection</code></div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Removes the section with the highest-valued index in the table view.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeSection:" title="removeSection:"></a>
<h3 class="subsubtitle method-title">removeSection:</h3>
<div class="method-subsection brief-description">
<p>Removes all occurrences in the table view of a given section.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeSection:(RETableViewSection *)<em>section</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>section</em></dt>
<dd><p>The section to remove from the table view.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Removes all occurrences in the table view of a given section.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeSection:inRange:" title="removeSection:inRange:"></a>
<h3 class="subsubtitle method-title">removeSection:inRange:</h3>
<div class="method-subsection brief-description">
<p>Removes all occurrences within a specified range in the table view of a given section.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeSection:(RETableViewSection *)<em>section</em> inRange:(NSRange)<em>range</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>section</em></dt>
<dd><p>The section to remove from the table view.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>range</em></dt>
<dd><p>The range from which to remove section.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Removes all occurrences within a specified range in the table view of a given section.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeSectionAtIndex:" title="removeSectionAtIndex:"></a>
<h3 class="subsubtitle method-title">removeSectionAtIndex:</h3>
<div class="method-subsection brief-description">
<p>Removes the section at index.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeSectionAtIndex:(NSUInteger)<em>index</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>index</em></dt>
<dd><p>The index from which to remove the section in the table view. The value must not exceed the bounds of the table view <a href="#//api/name/sections">sections</a>.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Removes the section at index.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeSectionIdenticalTo:" title="removeSectionIdenticalTo:"></a>
<h3 class="subsubtitle method-title">removeSectionIdenticalTo:</h3>
<div class="method-subsection brief-description">
<p>Removes all occurrences of a given section in the <a href="#//api/name/sections">sections</a> array.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeSectionIdenticalTo:(RETableViewSection *)<em>section</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>section</em></dt>
<dd><p>The section to remove from the <a href="#//api/name/sections">sections</a> array.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Removes all occurrences of a given section in the <a href="#//api/name/sections">sections</a> array.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeSectionIdenticalTo:inRange:" title="removeSectionIdenticalTo:inRange:"></a>
<h3 class="subsubtitle method-title">removeSectionIdenticalTo:inRange:</h3>
<div class="method-subsection brief-description">
<p>Removes all occurrences of section within the specified range in the table view.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeSectionIdenticalTo:(RETableViewSection *)<em>section</em> inRange:(NSRange)<em>range</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>section</em></dt>
<dd><p>The section to remove from the table view within range.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>range</em></dt>
<dd><p>The range in the table view from which to remove section.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Removes all occurrences of section within the specified range in the table view.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeSectionsAtIndexes:" title="removeSectionsAtIndexes:"></a>
<h3 class="subsubtitle method-title">removeSectionsAtIndexes:</h3>
<div class="method-subsection brief-description">
<p>Removes the <a href="#//api/name/sections">sections</a> at the specified indexes from the table view.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeSectionsAtIndexes:(NSIndexSet *)<em>indexes</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>indexes</em></dt>
<dd><p>The indexes of the <a href="#//api/name/sections">sections</a> to remove from the table view. The locations specified by indexes must lie within the bounds of the table view <a href="#//api/name/sections">sections</a>.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Removes the <a href="#//api/name/sections">sections</a> at the specified indexes from the table view.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeSectionsInArray:" title="removeSectionsInArray:"></a>
<h3 class="subsubtitle method-title">removeSectionsInArray:</h3>
<div class="method-subsection brief-description">
<p>Removes from the table view the <a href="#//api/name/sections">sections</a> in another given array.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeSectionsInArray:(NSArray *)<em>otherArray</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>otherArray</em></dt>
<dd><p>An array containing the <a href="#//api/name/sections">sections</a> to be removed from the table view.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Removes from the table view the <a href="#//api/name/sections">sections</a> in another given array.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/removeSectionsInRange:" title="removeSectionsInRange:"></a>
<h3 class="subsubtitle method-title">removeSectionsInRange:</h3>
<div class="method-subsection brief-description">
<p>Removes from the table view each of the <a href="#//api/name/sections">sections</a> within a given range.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)removeSectionsInRange:(NSRange)<em>range</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>range</em></dt>
<dd><p>The range of the <a href="#//api/name/sections">sections</a> to remove from the table view.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Removes from the table view each of the <a href="#//api/name/sections">sections</a> within a given range.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/replaceSectionAtIndex:withSection:" title="replaceSectionAtIndex:withSection:"></a>
<h3 class="subsubtitle method-title">replaceSectionAtIndex:withSection:</h3>
<div class="method-subsection brief-description">
<p>Replaces the section at index with <code>section</code>.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)replaceSectionAtIndex:(NSUInteger)<em>index</em> withSection:(RETableViewSection *)<em>section</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>index</em></dt>
<dd><p>The index of the section to be replaced. This value must not exceed the bounds of the table view <a href="#//api/name/sections">sections</a>.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>section</em></dt>
<dd><p>The section with which to replace the section at index <code>index</code> in the <a href="#//api/name/sections">sections</a> array. This value must not be <code>nil</code>.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Replaces the section at index with <code>section</code>.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/replaceSectionsAtIndexes:withSections:" title="replaceSectionsAtIndexes:withSections:"></a>
<h3 class="subsubtitle method-title">replaceSectionsAtIndexes:withSections:</h3>
<div class="method-subsection brief-description">
<p>Replaces the <a href="#//api/name/sections">sections</a> in the table view at specified locations specified with the <a href="#//api/name/sections">sections</a> from a given array.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)replaceSectionsAtIndexes:(NSIndexSet *)<em>indexes</em> withSections:(NSArray *)<em>sections</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>indexes</em></dt>
<dd><p>The indexes of the <a href="#//api/name/sections">sections</a> to be replaced.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>sections</em></dt>
<dd><p>The <a href="#//api/name/sections">sections</a> with which to replace the <a href="#//api/name/sections">sections</a> in the table view at the indexes specified by indexes. The count of locations in indexes must equal the count of <a href="#//api/name/sections">sections</a>.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Replaces the <a href="#//api/name/sections">sections</a> in the table view at specified locations specified with the <a href="#//api/name/sections">sections</a> from a given array.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/replaceSectionsInRange:withSectionsFromArray:" title="replaceSectionsInRange:withSectionsFromArray:"></a>
<h3 class="subsubtitle method-title">replaceSectionsInRange:withSectionsFromArray:</h3>
<div class="method-subsection brief-description">
<p>Replaces the <a href="#//api/name/sections">sections</a> in the table view specified by a given range with all of the <a href="#//api/name/sections">sections</a> from a given array.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)replaceSectionsInRange:(NSRange)<em>range</em> withSectionsFromArray:(NSArray *)<em>otherArray</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>range</em></dt>
<dd><p>The range of <a href="#//api/name/sections">sections</a> to replace in (or remove from) the table view.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>otherArray</em></dt>
<dd><p>The array of <a href="#//api/name/sections">sections</a> from which to select replacements for the <a href="#//api/name/sections">sections</a> in range.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Replaces the <a href="#//api/name/sections">sections</a> in the table view specified by a given range with all of the <a href="#//api/name/sections">sections</a> from a given array.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/replaceSectionsInRange:withSectionsFromArray:range:" title="replaceSectionsInRange:withSectionsFromArray:range:"></a>
<h3 class="subsubtitle method-title">replaceSectionsInRange:withSectionsFromArray:range:</h3>
<div class="method-subsection brief-description">
<p>Replaces the <a href="#//api/name/sections">sections</a> in the table view by one given range with the <a href="#//api/name/sections">sections</a> in another array specified by another range.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)replaceSectionsInRange:(NSRange)<em>range</em> withSectionsFromArray:(NSArray *)<em>otherArray</em> range:(NSRange)<em>otherRange</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>range</em></dt>
<dd><p>The range of <a href="#//api/name/sections">sections</a> to replace in (or remove from) the table view.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>otherArray</em></dt>
<dd><p>The array of <a href="#//api/name/sections">sections</a> from which to select replacements for the <a href="#//api/name/sections">sections</a> in range.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>otherRange</em></dt>
<dd><p>The range of <a href="#//api/name/sections">sections</a> to select from otherArray as replacements for the <a href="#//api/name/sections">sections</a> in range.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Replaces the <a href="#//api/name/sections">sections</a> in the table view by one given range with the <a href="#//api/name/sections">sections</a> in another array specified by another range.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/replaceSectionsWithSectionsFromArray:" title="replaceSectionsWithSectionsFromArray:"></a>
<h3 class="subsubtitle method-title">replaceSectionsWithSectionsFromArray:</h3>
<div class="method-subsection brief-description">
<p>Replaces the <a href="#//api/name/sections">sections</a> in the table view with all of the <a href="#//api/name/sections">sections</a> from a given array.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)replaceSectionsWithSectionsFromArray:(NSArray *)<em>otherArray</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>otherArray</em></dt>
<dd><p>The array of <a href="#//api/name/sections">sections</a> from which to select replacements for the <a href="#//api/name/sections">sections</a>.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Replaces the <a href="#//api/name/sections">sections</a> in the table view with all of the <a href="#//api/name/sections">sections</a> from a given array.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/setObject:forKeyedSubscript:" title="setObject:forKeyedSubscript:"></a>
<h3 class="subsubtitle method-title">setObject:forKeyedSubscript:</h3>
<div class="method-subsection brief-description">
<p>Sets a cell class for the keyed subscript.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)setObject:(id)<em>obj</em> forKeyedSubscript:(id&lt;NSCopying&gt;)<em>key</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>obj</em></dt>
<dd><p>The cell class to set for the keyed subscript.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>key</em></dt>
<dd><p>The keyed subscript.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Sets a cell class for the keyed subscript.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/sortSectionsUsingFunction:context:" title="sortSectionsUsingFunction:context:"></a>
<h3 class="subsubtitle method-title">sortSectionsUsingFunction:context:</h3>
<div class="method-subsection brief-description">
<p>Sorts the <a href="#//api/name/sections">sections</a> in ascending order as defined by the comparison function compare.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)sortSectionsUsingFunction:(NSInteger ( *) ( id , id , void *))<em>compare</em> context:(void *)<em>context</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>compare</em></dt>
<dd><p>The comparison function to use to compare two <a href="#//api/name/sections">sections</a> at a time.</p></dd>
</dl>
<dl class="argument-def parameter-def">
<dt><em>context</em></dt>
<dd><p>The context argument to pass to the compare function.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Sorts the <a href="#//api/name/sections">sections</a> in ascending order as defined by the comparison function compare.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.h</code><br />
</div>
</div>
<div class="section-method">
<a name="//api/name/sortSectionsUsingSelector:" title="sortSectionsUsingSelector:"></a>
<h3 class="subsubtitle method-title">sortSectionsUsingSelector:</h3>
<div class="method-subsection brief-description">
<p>Sorts the <a href="#//api/name/sections">sections</a> in ascending order, as determined by the comparison method specified by a given selector.</p>
</div>
<div class="method-subsection method-declaration"><code>- (void)sortSectionsUsingSelector:(SEL)<em>comparator</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>comparator</em></dt>
<dd><p>A selector that specifies the comparison method to use to compare <a href="#//api/name/sections">sections</a> in the table view.</p></dd>
</dl>
</div>
<div class="method-subsection discussion-section">
<h4 class="method-subtitle">Discussion</h4>
<p>Sorts the <a href="#//api/name/sections">sections</a> in ascending order, as determined by the comparison method specified by a given selector.</p>
</div>
<div class="method-subsection declared-in-section">
<h4 class="method-subtitle">Declared In</h4>
<code class="declared-in-ref">RETableViewManager.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">&copy; 2013 Roman Efimov. All rights reserved. (Last updated: 2013-07-16)</span><br />
<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.1 (build 840)</a>.</span></p>
</div>
</div>
</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>
</html>