<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Create a view</title>
	<atom:link href="http://zcentric.com/2008/08/04/create-a-view/feed/" rel="self" type="application/rss+xml" />
	<link>http://zcentric.com/2008/08/04/create-a-view/</link>
	<description>A blog about linux, programming and more</description>
	<lastBuildDate>Sat, 11 Feb 2012 01:42:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: James</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-878</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sat, 07 Mar 2009 03:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-878</guid>
		<description>Hi thank you so much for this tut. i couldnt find any other tut. that actually worked. I have a question, i created the table and made it so it goes to another view but now in the new view i want to make a info button that shows a alert box. Please get back to me soon.</description>
		<content:encoded><![CDATA[<p>Hi thank you so much for this tut. i couldnt find any other tut. that actually worked. I have a question, i created the table and made it so it goes to another view but now in the new view i want to make a info button that shows a alert box. Please get back to me soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fazzo</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-877</link>
		<dc:creator>fazzo</dc:creator>
		<pubDate>Fri, 06 Mar 2009 20:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-877</guid>
		<description>Hello i have the same problem. I dont no how i make the options link to another view. Can you please help me?

Thanks iiiforum@yahoo.de</description>
		<content:encoded><![CDATA[<p>Hello i have the same problem. I dont no how i make the options link to another view. Can you please help me?</p>
<p>Thanks <a href="mailto:iiiforum@yahoo.de">iiiforum@yahoo.de</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chase acton</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-876</link>
		<dc:creator>chase acton</dc:creator>
		<pubDate>Thu, 05 Mar 2009 03:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-876</guid>
		<description>Hello i have tried for hours and cannot figure out how to make the options link to another view. Can you please explain so a noob like me can understand. Thanks, chaseacton@gmail.com</description>
		<content:encoded><![CDATA[<p>Hello i have tried for hours and cannot figure out how to make the options link to another view. Can you please explain so a noob like me can understand. Thanks, <a href="mailto:chaseacton@gmail.com">chaseacton@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anup Kmakhalia</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-875</link>
		<dc:creator>Anup Kmakhalia</dc:creator>
		<pubDate>Fri, 05 Dec 2008 11:02:24 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-875</guid>
		<description>I want to make navigation table view for iPhone application, for example click below link to know what i want to make.
 (i e): http://joehewitt.com/files/iphone/navigation.html#_albums


Can anybody tell me step by step.

Thanks</description>
		<content:encoded><![CDATA[<p>I want to make navigation table view for iPhone application, for example click below link to know what i want to make.<br />
 (i e): <a href="http://joehewitt.com/files/iphone/navigation.html#_albums" rel="nofollow">http://joehewitt.com/files/iphone/navigation.html#_albums</a></p>
<p>Can anybody tell me step by step.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Click a Cell &#124; Iphone Noob</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-874</link>
		<dc:creator>Click a Cell &#124; Iphone Noob</dc:creator>
		<pubDate>Mon, 25 Aug 2008 18:51:35 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-874</guid>
		<description>[...] save the file and we need to create a new view. Follow the following entry for how to do that in IB. Just follow the IB sets, you can ignore the code, we will fill that in [...] </description>
		<content:encoded><![CDATA[<p>[...] save the file and we need to create a new view. Follow the following entry for how to do that in IB. Just follow the IB sets, you can ignore the code, we will fill that in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Strangeite</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-873</link>
		<dc:creator>Strangeite</dc:creator>
		<pubDate>Mon, 25 Aug 2008 14:41:19 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-873</guid>
		<description>I will.  It will be sometime this afternoon before I will have the opportunity.</description>
		<content:encoded><![CDATA[<p>I will.  It will be sometime this afternoon before I will have the opportunity.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikezupan</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-872</link>
		<dc:creator>mikezupan</dc:creator>
		<pubDate>Mon, 25 Aug 2008 14:38:50 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-872</guid>
		<description>Send me the project if you can at

mike (at) zcentric.com

I can take a look at it better that way.. I don&#039;t see much there that is wrong</description>
		<content:encoded><![CDATA[<p>Send me the project if you can at</p>
<p>mike (at) zcentric.com</p>
<p>I can take a look at it better that way.. I don&#8217;t see much there that is wrong</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Strangeite</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-871</link>
		<dc:creator>Strangeite</dc:creator>
		<pubDate>Mon, 25 Aug 2008 14:33:08 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-871</guid>
		<description>Just occurred to me that showing you the HollywoodDataController would probably be helpful.  Here  it is.  

#import &quot;HollywoodDataController.h&quot;


@implementation HollywoodDataController

@synthesize hollywoodArray;

- (id)init {
    if (self = [super init]) {
        [self createData];
    }
    return self;
}

-(NSInteger)getCount {
	return [hollywoodArray count];
}

- (id)getItem:(NSInteger)index {
    return [hollywoodArray objectAtIndex:index];
}

-(void) createData {
	hollywoodArray = [[NSMutableArray alloc] init];
	
	[hollywoodArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:
						  NSLocalizedString(@&quot;Stupid Data 1&quot;, @&quot;&quot;), @&quot;title&quot;,
						  nil,
						  nil]];

	[hollywoodArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:
							   NSLocalizedString(@&quot;Stupid Data 2&quot;, @&quot;&quot;), @&quot;title&quot;,
							   nil,
							   nil]];
	
	
}
@end</description>
		<content:encoded><![CDATA[<p>Just occurred to me that showing you the HollywoodDataController would probably be helpful.  Here  it is.  </p>
<p>#import &#8220;HollywoodDataController.h&#8221;</p>
<p>@implementation HollywoodDataController</p>
<p>@synthesize hollywoodArray;</p>
<p>- (id)init {<br />
    if (self = [super init]) {<br />
        [self createData];<br />
    }<br />
    return self;<br />
}</p>
<p>-(NSInteger)getCount {<br />
	return [hollywoodArray count];<br />
}</p>
<p>- (id)getItem:(NSInteger)index {<br />
    return [hollywoodArray objectAtIndex:index];<br />
}</p>
<p>-(void) createData {<br />
	hollywoodArray = [[NSMutableArray alloc] init];</p>
<p>	[hollywoodArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:<br />
						  NSLocalizedString(@"Stupid Data 1", @""), @"title",<br />
						  nil,<br />
						  nil]];</p>
<p>	[hollywoodArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:<br />
							   NSLocalizedString(@"Stupid Data 2", @""), @"title",<br />
							   nil,<br />
							   nil]];</p>
<p>}<br />
@end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Strangeite</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-870</link>
		<dc:creator>Strangeite</dc:creator>
		<pubDate>Mon, 25 Aug 2008 14:20:41 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-870</guid>
		<description>Thanks.  Again, you have no idea how helpful your site is for noobs like me.  

This is the code for what I am calling HollywoodViewController.m  hdController is for the HollywoodDataController which contains the array just like the original DataController.

#import &quot;HollywoodViewController.h&quot;
#import &quot;HollywoodDataController.h&quot;


@implementation HollywoodViewController

@synthesize hdController;

- (void)viewDidLoad {
	// Add the following line if you want the list to be editable
	// self.navigationItem.leftBarButtonItem = self.editButtonItem;
	
	HollywoodDataController *hdcontroller = [[HollywoodDataController alloc] init];
    self.hdController = hdcontroller;
    [hdcontroller release];
	
	self.title = @&quot;Stupid Hollywood Data&quot;;
	
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	return 1;
}


- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return [hdController getCount];
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	
	static NSString *MyIdentifier = @&quot;MyIdentifier&quot;;
	
	UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];
	if (cell == nil) {
		cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];
		cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
	}
	
	NSDictionary *itemAtIndex = (NSDictionary *)[hdController getItem:indexPath.row];
	cell.text = [itemAtIndex objectForKey:@&quot;title&quot;];
	
	// Set up the cell
	return cell;
}</description>
		<content:encoded><![CDATA[<p>Thanks.  Again, you have no idea how helpful your site is for noobs like me.  </p>
<p>This is the code for what I am calling HollywoodViewController.m  hdController is for the HollywoodDataController which contains the array just like the original DataController.</p>
<p>#import &#8220;HollywoodViewController.h&#8221;<br />
#import &#8220;HollywoodDataController.h&#8221;</p>
<p>@implementation HollywoodViewController</p>
<p>@synthesize hdController;</p>
<p>- (void)viewDidLoad {<br />
	// Add the following line if you want the list to be editable<br />
	// self.navigationItem.leftBarButtonItem = self.editButtonItem;</p>
<p>	HollywoodDataController *hdcontroller = [[HollywoodDataController alloc] init];<br />
    self.hdController = hdcontroller;<br />
    [hdcontroller release];</p>
<p>	self.title = @&#8221;Stupid Hollywood Data&#8221;;</p>
<p>}<br />
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {<br />
	return 1;<br />
}</p>
<p>- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {<br />
	return [hdController getCount];<br />
}</p>
<p>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {</p>
<p>	static NSString *MyIdentifier = @&#8221;MyIdentifier&#8221;;</p>
<p>	UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];<br />
	if (cell == nil) {<br />
		cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease];<br />
		cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;<br />
	}</p>
<p>	NSDictionary *itemAtIndex = (NSDictionary *)[hdController getItem:indexPath.row];<br />
	cell.text = [itemAtIndex objectForKey:@"title"];</p>
<p>	// Set up the cell<br />
	return cell;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikezupan</title>
		<link>http://zcentric.com/2008/08/04/create-a-view/comment-page-1/#comment-869</link>
		<dc:creator>mikezupan</dc:creator>
		<pubDate>Mon, 25 Aug 2008 13:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://iphone.zcentric.com/?p=93#comment-869</guid>
		<description>It should be the same as the mainview to populate.

My guess is that you aren&#039;t setting the row count for the table in 

numberOfRowsInSection

If you want you can show me code or such and I can take a look..

hope it helps</description>
		<content:encoded><![CDATA[<p>It should be the same as the mainview to populate.</p>
<p>My guess is that you aren&#8217;t setting the row count for the table in </p>
<p>numberOfRowsInSection</p>
<p>If you want you can show me code or such and I can take a look..</p>
<p>hope it helps</p>
]]></content:encoded>
	</item>
</channel>
</rss>

