<?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>Fri, 20 Apr 2012 00:58:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.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<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Fiphone-developer%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于iPhone平台开发生态我的看法（谈iPhone到底是封闭还是开放）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F07%2Fiphone-ipad-design%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">iPhone/iPad开发讲座 第二讲 iPhone用户界面设计 Keynote放出</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F06%2Fiphone-ipad-ios-development-01%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">iPhone/iPad开发讲座 第一讲 IOS开发简介 Keynote放出</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Fqq-android-iphone%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于腾讯推出QQ for android软件事件的短评</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F06%2Fwwdc-2010-ipad-iphone-pdf%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WWDC 2010的一些数字、细节以及我的感受</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></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>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Fiphone-developer%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于iPhone平台开发生态我的看法（谈iPhone到底是封闭还是开放）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F07%2Fiphone-ipad-design%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">iPhone/iPad开发讲座 第二讲 iPhone用户界面设计 Keynote放出</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F06%2Fiphone-ipad-ios-development-01%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">iPhone/iPad开发讲座 第一讲 IOS开发简介 Keynote放出</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Fqq-android-iphone%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">关于腾讯推出QQ for android软件事件的短评</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F06%2Fwwdc-2010-ipad-iphone-pdf%2F&from=http%3A%2F%2Ftiny4.org%2Fblog%2F2010%2F03%2Ftutorial-how-to-use-iphone-calendar-control%2F">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">WWDC 2010的一些数字、细节以及我的感受</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://tiny4.org/blog/2010/03/tutorial-how-to-use-iphone-calendar-control/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

