<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>“我”的开发笔记 &#187; 导航栏</title>
	<atom:link href="http://c.gzl.name/archives/tag/%e5%af%bc%e8%88%aa%e6%a0%8f/feed" rel="self" type="application/rss+xml" />
	<link>http://c.gzl.name</link>
	<description>IPhone, Cocoa, PHP, Javascript, JQuery, Actionscript, etc...</description>
	<lastBuildDate>Thu, 29 Dec 2011 07:20:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>数据类型/对象类型介绍（2）UINavigationController</title>
		<link>http://c.gzl.name/archives/373</link>
		<comments>http://c.gzl.name/archives/373#comments</comments>
		<pubDate>Sun, 06 Sep 2009 23:42:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[07 - 各种导航控制器（Nav,TabBar）]]></category>
		<category><![CDATA[iPhone开发]]></category>
		<category><![CDATA[UINavigationController]]></category>
		<category><![CDATA[导航控制器]]></category>
		<category><![CDATA[导航栏]]></category>

		<guid isPermaLink="false">http://c.gzl.name/?p=373</guid>
		<description><![CDATA[UINavigationController iPhone导航控制器/导航栏 是在iPhone程序中广为使用的用户数据互动方式。 这是一个简单的导航栏截图，我们可以设置其内置UIView的title，而导航栏会显示出这个title。而不是设置导航栏的title。我们也可以设置其左侧，或者右侧的按钮或者自定义视图对象。我们下面来一步一步的看看导航栏的使用： 1，创建并使用一个UINavigationController UINavigationController *aNav = &#91;&#91;UINavigationController alloc&#93; init&#93;; 然后添加一个视图进去，否则导航栏也没有意义的 UIViewController *aView = &#91;&#91;UIView alloc&#93; initWithNibName: &#40;*xib文件名*&#41;&#93;; &#91;aNav pushViewController:aView animated:NO&#93;; //导航栏的第一个视图不要动画化 2，设置导航栏的左右按钮： 我说过，设置导航栏的按钮并不是去设置导航栏本身，而是当时被导航的视图控制器，比如我们对aView作设置。 设置其标题： aView.title = @&#34;标题&#34;; &#160; //配置一个按钮，我这里是《我的佛典》上的代码 UIBarButtonItem *callModalViewButton = &#91;&#91;UIBarButtonItem alloc&#93; initWithTitle:@&#34;经文&#34; style:UIBarButtonItemStyleBordered target:self action:@selector&#40;callModalList&#41;&#93;; self.navigationItem.leftBarButtonItem = callModalViewButton; &#91;callModalViewButton release&#93;; //由于本地视图会retain它，所以我们可以release了 可以看到，还是很简单的嘛。 3，其他常用方法和属性： 本地视图.navigationItem.leftBarButtonItem //左边栏项目 本地视图.navigationItem.rightBarButtonItem //右边栏项目 本地视图.navigationItem.backBarButtonItem //后退栏项目 本地视图.navigationItem.hidesBackButton [...]]]></description>
		<wfw:commentRss>http://c.gzl.name/archives/373/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

