Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit 3b1eaef

Browse files
committed
readme updated
1 parent 310d0e8 commit 3b1eaef

File tree

2 files changed

+175
-3
lines changed

2 files changed

+175
-3
lines changed

README

Lines changed: 0 additions & 3 deletions
This file was deleted.

README.rtf

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
{\rtf1\ansi\ansicpg1252\cocoartf1138\cocoasubrtf320
2+
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
3+
{\colortbl;\red255\green255\blue255;}
4+
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{disc\}}{\leveltext\leveltemplateid1\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}
5+
{\list\listtemplateid2\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{decimal\}.}{\leveltext\leveltemplateid101\'02\'00.;}{\levelnumbers\'01;}\fi-360\li720\lin720 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{hyphen\}}{\leveltext\leveltemplateid102\'01\uc0\u8259 ;}{\levelnumbers;}\fi-360\li1440\lin1440 }{\listname ;}\listid2}}
6+
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}}
7+
\paperw11900\paperh16840\margl1440\margr1440\vieww15240\viewh14300\viewkind0
8+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
9+
10+
\f0\b\fs36 \cf0 ARTableViewPager
11+
\b0 \
12+
13+
\fs24 \
14+
The ARTableViewPager is an iOS component for horizontal table view scrolling/paging.\
15+
\
16+
This component gives you the possibility to manage multiple UITableViews with one ViewController. \
17+
To change the displayed table view you can either use a swipe gesture or the PageControl in the header. \
18+
Its very easy to use just like the standard UITableViewController. You simply subclass ARTableViewPagerViewController!\
19+
\
20+
21+
\b\fs28 Features:\
22+
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\pardirnatural
23+
\ls1\ilvl0
24+
\b0\fs24 \cf0 {\listtext \'95 }manage multiple UITableViews with one ViewController\
25+
{\listtext \'95 }horizontal scrolling/paging to switch between the table views\
26+
{\listtext \'95 }very easy to use but also highly customizable\
27+
{\listtext \'95 }supports all UITableView delegate methods with an additional parameter which contains the page index.\
28+
{\listtext \'95 }uses ARC\
29+
{\listtext \'95 }MIT open source licence\
30+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
31+
\cf0 \
32+
33+
\b\fs28 How to use
34+
\b0 \
35+
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\pardirnatural
36+
\ls2\ilvl0
37+
\fs24 \cf0 {\listtext 1. }Create a subclass of the ARTableViewPagerViewController\
38+
\pard\tx940\tx1440\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li1440\fi-1440\pardirnatural
39+
\ls2\ilvl1\cf0 {\listtext \uc0\u8259 }in your subclass you have to implement the delegate methods to setup the table views\
40+
{\listtext \uc0\u8259 }The ARTableViewPager extents the UITableView delegate methods by the page index so you can \uc0\u8232 setup the ViewController just like a normal UITableViewController but within the methods you can \u8232 do something different for each page index \
41+
{\listtext \uc0\u8259 }with the
42+
\b tableviews
43+
\b0 or the
44+
\b tableViewForPageIndex:
45+
\b0 methods you can access the table views and \uc0\u8232 do some additional configuration to them\
46+
\pard\tx220\tx720\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li720\fi-720\pardirnatural
47+
\ls2\ilvl0\cf0 {\listtext 2. }Create an instance of your Subclass with one of the initializers e.g.
48+
\b initWithNumberOfPages:\
49+
\ls2\ilvl0
50+
\b0 {\listtext 3. }
51+
\i optional
52+
\i0 : Configure the instance using the build in properties\
53+
{\listtext 4. }Add it to the the screen\
54+
\pard\tx940\tx1440\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\li1440\fi-1440\pardirnatural
55+
\ls2\ilvl1\cf0 {\listtext \uc0\u8259 }if you use the ARTableViewPager with a UINavigationController you have to adjust the frame first \uc0\u8232 by setting the
56+
\b frame
57+
\b0 property of the view controller like in the
58+
\i Simple Example
59+
\i0 .\
60+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
61+
\cf0 \
62+
63+
\b\fs28 Properties
64+
\fs24 \
65+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\sl360\slmult1\pardirnatural
66+
\cf0 titleStrings\
67+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
68+
\cf0
69+
\b0 Specify the title String for each page. If you use this property a default View is used to present the title\
70+
71+
\b titleViews \
72+
73+
\b0 Use your own View to present the title of the pages. This property overrides the titles from the titleStrings property. \
74+
The size is automatically scaled to fit into the pageControl header. \
75+
76+
\b leftArrowView
77+
\b0 \
78+
Customize the View displayed on the left side of the PageControl header. If this property is nil a default view is used.\
79+
80+
\b rightArrowView
81+
\b0 \
82+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
83+
\cf0 Customize the View displayed on the right side of the pageControl header. If this property is nil a default view is used.\
84+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
85+
\cf0 \
86+
87+
\b pageControlBackgroundColor
88+
\b0 \
89+
The default background color of the pageControl header. \
90+
91+
\b pageControlHeight
92+
\b0 \
93+
The height of the pageControl header. This property have to be set before the view is displayed on screen\
94+
95+
\b hidePageControl
96+
\b0 \
97+
If set to YES no header is shown\
98+
\
99+
100+
\b fixedBackgroundColor
101+
\b0 \
102+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
103+
\cf0 The background color behind the table views. It doesn't scroll whit the table views.\
104+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
105+
\cf0
106+
\b scrollingBackgroundColor
107+
\b0 \
108+
The background color behind the table views. It overlays the fixedBackgroundColor and scrolls with the table views.
109+
\b \
110+
\
111+
numberOfPages \
112+
113+
\b0 The total page count.\
114+
115+
\b tableViewPagerView \
116+
117+
\b0 The view conturing the the paging control and the pageControl header\
118+
119+
\b frame
120+
\b0 \
121+
The size of the View. Set this if you using the ARTablePagerView as a subview.\
122+
\
123+
124+
\b\fs28 Methods
125+
\fs24 \
126+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\sl360\slmult1\pardirnatural
127+
\cf0 initWithNumberOfPages \
128+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
129+
\cf0
130+
\b0 Initialize the TableViewPager with a number of Pages. It automatically creates the correct number of table views.
131+
\b \
132+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\sl360\slmult1\pardirnatural
133+
\cf0 initWithTitleViews\
134+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
135+
\cf0
136+
\b0 Initialize the TableViewPager with an array of Views containing the titles for each page.
137+
\b \
138+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\sl360\slmult1\pardirnatural
139+
\cf0 initWithTitleStrings\
140+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
141+
\cf0
142+
\b0 Initialize the TableViewPager with an array of title strings for each page.
143+
\b \
144+
\
145+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\sl360\slmult1\pardirnatural
146+
\cf0 tableViews\
147+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
148+
\cf0
149+
\b0 Get the array of all used UITableViews. The position in the array corresponds with the index of the page the table \
150+
view is displayed.
151+
\b \
152+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\sl360\slmult1\pardirnatural
153+
\cf0 tableViewForPageIndex\
154+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
155+
\cf0
156+
\b0 Get the specific UITableView for a certain page index.
157+
\b \
158+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\sl360\slmult1\pardirnatural
159+
\cf0 currentPageIndex\
160+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
161+
\cf0
162+
\b0 Gives you the page index of the current displayed page.
163+
\b \
164+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\sl360\slmult1\pardirnatural
165+
\cf0 moveToPageAtIndex:animated\
166+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
167+
\cf0
168+
\b0 Changes the displayed page to the given page index. If animated is YES the change is animated with a swipe.\
169+
\
170+
\
171+
Please enjoy this framework!\
172+
\
173+
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural
174+
\cf0 \
175+
}

0 commit comments

Comments
 (0)