Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
No not quite, i mean what do i do if i want to show 20 views?
First, you need to figure out when you want the different views to be displayed (what decides whether the first view or second view is displayed?). When developing, it's a good idea to always have a high-level design of what you want to accomplish, written in plain English or otherwise easily understandable. From there, it will be much easier to code.

For example,

"I want the user to enter a number, which will determine the view to display."

Assuming 3 views, this could be roughly pseudo-coded as:

Code:
...
get user input and store to viewNum
...
if (viewNum is 1)
    display ViewOne
else if (viewNum is 2)
    display ViewTwo
else
    display ViewThree
...

Once you have a design laid out, it's just a matter of replacing your pseudocode with the actual code.
 
First, you need to figure out when you want the different views to be displayed (what decides whether the first view or second view is displayed?). When developing, it's a good idea to always have a high-level design of what you want to accomplish, written in plain English or otherwise easily understandable. From there, it will be much easier to code.

For example,

"I want the user to enter a number, which will determine the view to display."

Assuming 3 views, this could be roughly pseudo-coded as:

Code:
...
get user input and store to viewNum
...
if (viewNum is 1)
    display ViewOne
else if (viewNum is 2)
    display ViewTwo
else
    display ViewThree
...

Once you have a design laid out, it's just a matter of replacing your pseudocode with the actual code.

I have the design set out, i was starting with 3 views because its easy, but i want about 10..

What about something like

Code:
switch (indexPath.row % 3)
{
  case 0:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.