<?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>Tinyfool的Blog &#187; 开源</title>
	<atom:link href="http://tiny4.org/blog/tag/%e5%bc%80%e6%ba%90/feed/" rel="self" type="application/rss+xml" />
	<link>http://tiny4.org/blog</link>
	<description>这就是我，Tinyfool，郝培强！身高180，体重240，标准的中年老胖子。 有妻有女，无房无车，现居上海，程序员。</description>
	<lastBuildDate>Wed, 04 Aug 2010 17:30:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>[教程]如何使用iPhone日历控件</title>
		<link>http://tiny4.org/blog/2010/03/tutorial-how-to-use-iphone-calendar-control/</link>
		<comments>http://tiny4.org/blog/2010/03/tutorial-how-to-use-iphone-calendar-control/#comments</comments>
		<pubDate>Fri, 12 Mar 2010 15:09:44 +0000</pubDate>
		<dc:creator>tinyfool</dc:creator>
				<category><![CDATA[开发]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[开源]]></category>

		<guid isPermaLink="false">http://tiny4.org/blog/?p=125</guid>
		<description><![CDATA[iPhone日历控件是由我贡献的，一个开源的类库，使用它你可以在你的iPhone软件里面插入一个日历视图。使用起来非常简单。 下载代码 如果你知道如何安装SVN，或者你的电脑已经安装了SVN，那么你可以简单的使用SVN来下载代码，在终端键入下列命令： svn checkout http://iphonecal.googlecode.com/svn/trunk/ iphonecal-read-only 如果，你可以从以下两个链接下载代码： http://iphonecal.googlecode.com/svn/trunk/TdCalendarView.h http://iphonecal.googlecode.com/svn/trunk/TdCalendarView.m 创建一个iPhone应用程序项目 下载代码后，你需要创建一个iPhone应用程序项目。打开XCode，点击菜单&#8221;File&#8221;->&#8221;New Project&#8230;&#8221;，在打开的对话框中，选择View-based Application。 把项目命名为TestiPhoneCal（或者其他什么名字，无所谓）： 创建项目以后，点击菜单&#8221;Project&#8221;->&#8221;Add to project&#8230;&#8221;，选择你下载的文件，注意选中&#8221;Copy items into destination group&#8217;s folder&#8221;选项。 设置view类 打开你的nib文件。 选择你要作为日历的view，把它的类设置为TdCalendarView。 好，现在运行你的程序，你就可以看到你的日历了。 如果你按照这个教程操作，遇到了困难，也可以使用我提供的Demo Code，作为自己代码的模版。下载地址：http://iphonecal.googlecode.com/files/TestiPhoneCal.zip English Version]]></description>
			<content:encoded><![CDATA[<p><a href="http://code.google.com/p/iphonecal">iPhone日历控件</a>是由我贡献的，一个开源的类库，使用它你可以在你的iPhone软件里面插入一个日历视图。使用起来非常简单。</p>
<h3>下载代码</h3>
<p>如果你知道如何安装SVN，或者你的电脑已经安装了SVN，那么你可以简单的使用SVN来下载代码，在终端键入下列命令：</p>
<p>svn checkout http://iphonecal.googlecode.com/svn/trunk/ iphonecal-read-only</p>
<p>如果，你可以从以下两个链接下载代码：</p>
<p><a href="http://iphonecal.googlecode.com/svn/trunk/TdCalendarView.h">http://iphonecal.googlecode.com/svn/trunk/TdCalendarView.h</a><br />
<a href="http://iphonecal.googlecode.com/svn/trunk/TdCalendarView.m">http://iphonecal.googlecode.com/svn/trunk/TdCalendarView.m</a></p>
<h3>创建一个iPhone应用程序项目</h3>
<p>下载代码后，你需要创建一个iPhone应用程序项目。打开XCode，点击菜单&#8221;File&#8221;->&#8221;New Project&#8230;&#8221;，在打开的对话框中，选择View-based Application。</p>
<p><a href="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal001.png"><img src="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal001.png" alt="" title="iphonecal001" width="400"  class="aligncenter size-full wp-image-126" /></a></p>
<p>把项目命名为TestiPhoneCal（或者其他什么名字，无所谓）：</p>
<p><a href="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal002.png"><img src="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal002.png" alt="" title="iphonecal002" width="400" class="aligncenter size-full wp-image-129" /></a></p>
<p>创建项目以后，点击菜单&#8221;Project&#8221;->&#8221;Add to project&#8230;&#8221;，选择你下载的文件，注意选中&#8221;Copy items into destination group&#8217;s folder&#8221;选项。</p>
<p><a href="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal003.png"><img src="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal003.png" alt="" title="iphonecal003" width="387" class="aligncenter size-full wp-image-130" /></a></p>
<p><a href="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal004.png"><img src="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal004.png" alt="" title="iphonecal004" width="500" class="aligncenter size-full wp-image-131" /></a></p>
<p><a href="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal005.png"><img src="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal005.png" alt="" title="iphonecal005" width="414" class="aligncenter size-full wp-image-132" /></a></p>
<h3>设置view类</h3>
<p>打开你的nib文件。</p>
<p><a href="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal006.png"><img src="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal006.png" alt="" title="iphonecal006" width="500" class="aligncenter size-full wp-image-135" /></a></p>
<p>选择你要作为日历的view，把它的类设置为TdCalendarView。</p>
<p><a href="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal007.png"><img src="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal007.png" alt="" title="iphonecal007" width="500" class="aligncenter size-full wp-image-136" /></a></p>
<p>好，现在运行你的程序，你就可以看到你的日历了。</p>
<p><a href="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal008.png"><img src="http://tiny4.org/blog/wp-content/uploads/2010/03/iphonecal008.png" alt="" title="iphonecal008" width="414" class="aligncenter size-full wp-image-137" /></a></p>
<p>如果你按照这个教程操作，遇到了困难，也可以使用我提供的Demo Code，作为自己代码的模版。下载地址：<a href="http://iphonecal.googlecode.com/files/TestiPhoneCal.zip">http://iphonecal.googlecode.com/files/TestiPhoneCal.zip</a></p>
<p><a href="http://tinyfool.blogspot.com/2010/01/tutorialhow-to-use-iphone-calendar.html">English Version</a></p>
]]></content:encoded>
			<wfw:commentRss>http://tiny4.org/blog/2010/03/tutorial-how-to-use-iphone-calendar-control/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
