<?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>Elton&#039;s Blog &#187; TTPhotoViewController</title>
	<atom:link href="http://blog.prosight.me/index.php/tag/ttphotoviewcontroller/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.prosight.me</link>
	<description>移动开发，敏捷web开发，Linux服务器部署维护，web UI和UE设计，摄影</description>
	<lastBuildDate>Wed, 08 Feb 2012 00:22:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Three20中给TTPhotoViewController添加播放按钮</title>
		<link>http://blog.prosight.me/index.php/2010/02/574?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=three20%25e4%25b8%25ad%25e7%25bb%2599ttphotoviewcontroller%25e6%25b7%25bb%25e5%258a%25a0%25e6%2592%25ad%25e6%2594%25be%25e6%258c%2589%25e9%2592%25ae</link>
		<comments>http://blog.prosight.me/index.php/2010/02/574#comments</comments>
		<pubDate>Sat, 06 Feb 2010 14:15:39 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[play button]]></category>
		<category><![CDATA[three20]]></category>
		<category><![CDATA[TTPhotoViewController]]></category>
		<category><![CDATA[TTThumbsViewController]]></category>

		<guid isPermaLink="false">http://blog.prosight.me/?p=574</guid>
		<description><![CDATA[Three20是一个很不错的iPhone类库，是facebook共享出来的框架。利用TTThumbsViewController可以很容易的制作出类似flickr的应用,实现缩略图和图片查看功能。 但是默认的TTThumbsViewController，点击一个图片的时候，下面的button只有上一个和下一个，并没有播放按钮。 之前以为Three20没有相应的播放功能。但是经过查看代码，发现在TTPhotoViewController中，其实有相关的方法，只是没有把播放按钮显示出来而已。 1 2 3 UIBarButtonItem* playButton = &#91;&#91;&#91;UIBarButtonItem alloc&#93; initWithBarButtonSystemItem: UIBarButtonSystemItemPlay target:self action:@selector&#40;playAction&#41;&#93; autorelease&#93;; playButton.tag = 1; 通过修改TTPhotoViewController大致在400行左右，添加playButton这个变量 1 2 _toolbar.items = &#91;NSArray arrayWithObjects: space, _previousButton, space, playButton, space, _nextButton, space, nil&#93;; 这样重新编译后，就可以看到播放按钮了。 Three20这个库其实还是很实用的，只是文档比较欠缺，没办法，只能直接看源码了。]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2010/02/574/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

