<?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; iPhone</title>
	<atom:link href="http://ixhan.com/category/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://ixhan.com</link>
	<description>Live in your world, get owned in mine</description>
	<lastBuildDate>Mon, 26 Jul 2010 17:09:26 +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>iBook Page Curl Animation 翻页效果</title>
		<link>http://ixhan.com/2010/06/ibook-page-curl-animation/</link>
		<comments>http://ixhan.com/2010/06/ibook-page-curl-animation/#comments</comments>
		<pubDate>Sat, 19 Jun 2010 07:20:02 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[ibook]]></category>
		<category><![CDATA[ipad]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=353</guid>
		<description><![CDATA[好久没来RP掉的厉害，刚把wp升级到3.0，庆幸没什么异样。 最近很少花时间码代码，整理点资料加点RP Steven 写的 Apple&#8217;s iBooks Dynamic Page Curl Steven: I manage the CoreAnimation team at Apple. Are you interested in working for us? 注意文章的评论，以及另一个没使用private api的项目 http://github.com/brow/leaves 还有一篇 App Store-safe Page Curl animations by Ole Begemann Related PostsApp Store 销售调查报告[2010-5]now or neverWhat is iPad All About? 10年之前]]></description>
			<content:encoded><![CDATA[<p>好久没来RP掉的厉害，刚把wp升级到3.0，庆幸没什么异样。</p>
<p>最近很少花时间码代码，整理点资料加点RP</p>
<p>Steven 写的 <strong><a href="http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html">Apple&#8217;s  iBooks Dynamic Page Curl</a></strong></p>
<blockquote><dd id="Blog1_cmt-2224988569967607763">Steven: I manage the CoreAnimation team at Apple. Are you interested in  working for us?</p>
</dd>
</blockquote>
<p>注意文章的评论，以及另一个没使用private api的项目</p>
<p><a href="http://github.com/brow/leaves">http://github.com/brow/leaves</a></p>
<p>还有一篇</p>
<p><a rel="bookmark" href="http://oleb.net/blog/2010/06/app-store-safe-page-curl-animations/">App Store-safe Page Curl animations</a> by <span style="font-weight: normal; font-size: 13px;"><a href="http://oleb.net/">Ole Begemann</a></span></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2010/05/app-store-sales-exposed/" title="App Store 销售调查报告[2010-5]">App Store 销售调查报告[2010-5]</a></li><li><a href="http://ixhan.com/2010/05/now-or-never/" title="now or never">now or never</a></li><li><a href="http://ixhan.com/2010/02/what-is-ipad-all-about/" title="What is iPad All About?  ">What is iPad All About?  </a></li><li><a href="http://ixhan.com/project/opensource-before-2010/" title="10年之前">10年之前</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2010/06/ibook-page-curl-animation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>App Store 销售调查报告[2010-5]</title>
		<link>http://ixhan.com/2010/05/app-store-sales-exposed/</link>
		<comments>http://ixhan.com/2010/05/app-store-sales-exposed/#comments</comments>
		<pubDate>Tue, 18 May 2010 03:01:55 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[app store]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[market]]></category>
		<category><![CDATA[sales]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=326</guid>
		<description><![CDATA[见到cocoachina上dr_watson的分享 原文地址 http://techcrunch.com/2010/05/16/iphone-app-sales-exposed/ 摘录其中一段 However, when the top 10% of the most successful apps are removed from the data set, the numbers skew much lower, giving a far better impression of what the iPhone industry looks like for most developers. In this scenario, the average sales were 11,625 total units, averaging 44 copies/day. Approximately 23% [...]]]></description>
			<content:encoded><![CDATA[<p>见到cocoachina上<strong><a href="u.php?action-show-uid-37.html" target="_blank">dr_watson</a>的分享</strong></p>
<p><strong>原文地址 <a href="http://techcrunch.com/2010/05/16/iphone-app-sales-exposed/">http://techcrunch.com/2010/05/16/iphone-app-sales-exposed/</a></strong></p>
<p><strong>摘录其中一段</strong></p>
<blockquote><p><strong>However, when the top 10% of the most successful apps are removed from the data set, the numbers skew much lower, giving a far better impression of what the iPhone industry looks like for most developers. In this scenario, the average sales were 11,625 total units, averaging 44 copies/day. Approximately 23% of apps sold less than 1000 units from launch (ranging from 12 to 370 days in the App Store). Further, 56% of apps sold less than or equal to 10,000 units, while 90% sold less than 100,000 units, with the remaining 10% achieving sales of 127,000 – 3,000,000 units.</p>
<p></strong></p></blockquote>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2010/06/ibook-page-curl-animation/" title="iBook Page Curl Animation 翻页效果">iBook Page Curl Animation 翻页效果</a></li><li><a href="http://ixhan.com/2010/05/now-or-never/" title="now or never">now or never</a></li><li><a href="http://ixhan.com/2010/02/what-is-ipad-all-about/" title="What is iPad All About?  ">What is iPad All About?  </a></li><li><a href="http://ixhan.com/project/opensource-before-2010/" title="10年之前">10年之前</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2010/05/app-store-sales-exposed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebView 小技巧</title>
		<link>http://ixhan.com/2010/04/a-trick-of-webview-iphone/</link>
		<comments>http://ixhan.com/2010/04/a-trick-of-webview-iphone/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 07:55:38 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[trick]]></category>
		<category><![CDATA[webview]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=302</guid>
		<description><![CDATA[apple 把 webview 封装的实在太简单了. 留给开发者只有寥寥几个api,甚至连scrollview的基本操作都没法完成. 不过下面这个方法 stringByEvaluatingJavaScriptFromString:String 还是给了些希望. 搜索后发现果然javascript提供了一系列移动页面的操作 window.pageYOffset   获得当前页面的偏移 window.scrollTo(x,y) 将页面偏移到指定位置 这样我的需求就实现了.当然js能做的事情太多了,给webview换一套css也不是不可能的. 好像 Reeder 以及 便携百科ipad 就是这么做到的吧. 这两款软件都做得相当完美,体验上也无可挑剔.作者确实费了不少心血. 用心的产品才能引起共鸣. Related PostsApple 发疯了永远的扫雷英雄(开源) 登场栽大了之Objc过度释放对象Things I&#8217;ve done int past 5 months]]></description>
			<content:encoded><![CDATA[<p>apple 把 webview 封装的实在太简单了.</p>
<p>留给开发者只有寥寥几个api,甚至连scrollview的基本操作都没法完成.</p>
<p>不过下面这个方法</p>
<blockquote><p>stringByEvaluatingJavaScriptFromString:String</p></blockquote>
<p>还是给了些希望.</p>
<p>搜索后发现果然javascript提供了一系列移动页面的操作</p>
<ul>
<li>window.pageYOffset   获得当前页面的偏移</li>
<li>window.scrollTo(x,y) 将页面偏移到指定位置</li>
</ul>
<p>这样我的需求就实现了.当然js能做的事情太多了,给webview换一套css也不是不可能的.</p>
<p>好像 Reeder 以及 便携百科ipad 就是这么做到的吧. 这两款软件都做得相当完美,体验上也无可挑剔.作者确实费了不少心血.</p>
<p>用心的产品才能引起共鸣.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2010/04/apple-such-a-bitch/" title="Apple 发疯了">Apple 发疯了</a></li><li><a href="http://ixhan.com/2009/12/minesweeperever/" title="永远的扫雷英雄(开源) 登场">永远的扫雷英雄(开源) 登场</a></li><li><a href="http://ixhan.com/2009/11/shit-on-objc-object-manager/" title="栽大了之Objc过度释放对象">栽大了之Objc过度释放对象</a></li><li><a href="http://ixhan.com/2009/11/things-ive-done-in-past-5-months/" title="Things I&#8217;ve done int past 5 months">Things I&#8217;ve done int past 5 months</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2010/04/a-trick-of-webview-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple 发疯了</title>
		<link>http://ixhan.com/2010/04/apple-such-a-bitch/</link>
		<comments>http://ixhan.com/2010/04/apple-such-a-bitch/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 02:26:39 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[objective-c]]></category>
		<category><![CDATA[os4]]></category>
		<category><![CDATA[unity]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=297</guid>
		<description><![CDATA[Apple 发布了 os4.0 新的Game Center -&#62; openFeint , Plus+ 等第三方平台怎么活下去。矛盾开始了 iAD -&#62; 公开指责 google ，又一个敌人 以及 3.3.1 3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the [...]]]></description>
			<content:encoded><![CDATA[<p>Apple 发布了 os4.0</p>
<p>新的Game Center -&gt; openFeint , Plus+ 等第三方平台怎么活下去。矛盾开始了</p>
<p>iAD -&gt; 公开指责 google ，又一个敌人</p>
<p>以及 3.3.1</p>
<blockquote><p>3.3.1 — Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. Applications must be originally written in Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit engine, and only code written in C, C++, and Objective-C may compile and directly link against the Documented APIs (e.g., Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited).</p></blockquote>
<p>这下 unity 和 即将来临的flash也被一棍打死了。</p>
<p><a href="http://forum.unity3d.com/viewtopic.php?t=48795&amp;postdays=0&amp;postorder=asc&amp;start=0">unity3d 论坛火爆讨论</a></p>
<p>Adobe 目前在twitter上的声明 ：<a href="http://twitter.com/Adobe" target="_blank">Adobe</a>We are looking into the new SDK language. We continue to develop Packager for iPhone OS which will debut in Flash <a href="http://search.twitter.com/search?q=%23CS5" target="_blank">#CS5</a></p>
<p><a href="http://www.cocos2d-iphone.org/archives/855">当然cocos2d 也赶紧来了个声明，哈哈不关我的事</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2009/11/shit-on-objc-object-manager/" title="栽大了之Objc过度释放对象">栽大了之Objc过度释放对象</a></li><li><a href="http://ixhan.com/project/opensource-before-2010/" title="10年之前">10年之前</a></li><li><a href="http://ixhan.com/2010/04/a-trick-of-webview-iphone/" title="WebView 小技巧">WebView 小技巧</a></li><li><a href="http://ixhan.com/2010/03/tutorial-of-kissxml-iphone/" title="Tutorial of  kissXML(iPhone)">Tutorial of  kissXML(iPhone)</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2010/04/apple-such-a-bitch/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tutorial of  kissXML(iPhone)</title>
		<link>http://ixhan.com/2010/03/tutorial-of-kissxml-iphone/</link>
		<comments>http://ixhan.com/2010/03/tutorial-of-kissxml-iphone/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 17:27:44 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[kissxml]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=289</guid>
		<description><![CDATA[KissXML is a good approach for parsing xml data, and the x-path function make it more powerful. Integrate With You Project And KissXML Download source codes form here Add all the files to your project (excluding DDXMLTesting) Configure you project to work with libxml click Project -&#62; Edit Project Settings You&#8217;ll be adding this to [...]]]></description>
			<content:encoded><![CDATA[<p>KissXML is a good approach for parsing xml data, and the x-path function make it more powerful.</p>
<h3>Integrate With You Project And KissXML</h3>
<ul>
<li>Download source codes form <a href="http://kissxml.googlecode.com/files/KissXML.zip">here</a></li>
<li>Add all the files to your project (excluding DDXMLTesting)</li>
<li>Configure you project to work with libxml</li>
</ul>
<p>click Project -&gt; Edit Project Settings</p>
<p>You&#8217;ll be adding this to your compiler instructions</p>
<p>OTHER_LDFLAGS = -lxml2</p>
<p>HEADER_SEARCH_PATHS = /usr/include/libxml2</p>
<p><img class="alignnone" src="http://www.deusty.com/blog/KissXML/XcodeSetup3.png" alt="" width="511" height="538" /></p>
<h3>Using KissXML</h3>
<p>Here is a quick demo to indicate you how it works.</p>
<p>For example, we need to get the SRC value of each media field from the target xml file.</p>
<pre class="brush: xml;">
&lt;smil xmlns=&quot;http://www.w3.org/2000/SMIL20/CR/Language&quot;&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;par dur=&quot;120000ms&quot; &gt;
&lt;text region=&quot;Text&quot; src=&quot;att000.txt&quot; /&gt;
&lt;/par&gt;
&lt;par dur=&quot;120000ms&quot; &gt;
&lt;text region=&quot;Text&quot; src=&quot;att010.txt&quot; /&gt;
&lt;/par&gt;
&lt;par dur=&quot;10000ms&quot; &gt;
&lt;img region=&quot;Image&quot; src=&quot;att020.jpg&quot;/&gt;
&lt;/par&gt;
&lt;par dur=&quot;120000ms&quot; &gt;
&lt;text region=&quot;Text&quot; src=&quot;att040.txt&quot; /&gt;
&lt;/par&gt;

&lt;par dur=&quot;10000ms&quot; &gt;
&lt;img region=&quot;Image&quot; src=&quot;att120.gif&quot;/&gt;
&lt;/par&gt;
&lt;/body&gt;
&lt;/smil&gt;
</pre>
<p>Here are the codes !</p>
<pre class="brush: objc;">
//hack to remove xmlns =&gt; avoid xpath search not works
 xmlStr = [xmlStr stringByReplacingOccurrencesOfString:@&quot;xmlns&quot; withString:@&quot;noNSxml&quot;];
 NSMutableArray* contents = [NSMutableArray array];

 NSError* error = nil;
 DDXMLDocument* xmlDoc = [[DDXMLDocument alloc] initWithXMLString:xmlStr options:0 error:&amp;error];

 if (error) {
 NSLog(@&quot;%@&quot;,[error localizedDescription]);
 return nil;
 }

 NSArray* resultNodes = nil;
 resultNodes = [xmlDoc nodesForXPath:@&quot;//audio | //text | //image | //img&quot; error:&amp;error];

 if (error) {
 NSLog(@&quot;%@&quot;,[error localizedDescription]);
 return nil;
 }

 for(DDXMLElement* resultElement in resultNodes)
 {
 NSString* name = [resultElement name];
 //audio , text or other media type
 NSString* fileName = [[resultElement attributeForName:@&quot;src&quot;] stringValue];
 // 0.txt
 }
</pre>
<p>Note, I replaced the &#8220;xmlns&#8221; inside the xml file, because it weird xpath would failed if namespace available at a XML file(it might a bug)</p>
<p>And at last, have fun!</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2009/11/things-ive-done-in-past-5-months/" title="Things I&#8217;ve done int past 5 months">Things I&#8217;ve done int past 5 months</a></li><li><a href="http://ixhan.com/2010/05/now-or-never/" title="now or never">now or never</a></li><li><a href="http://ixhan.com/2009/10/convert-iphone-png-to-origin/" title="将编译好的iPhone程序的PNG还原">将编译好的iPhone程序的PNG还原</a></li><li><a href="http://ixhan.com/2009/10/redmine-images-manager-system/" title="用 Redmine 管理iPhone项目中过多的图片文件">用 Redmine 管理iPhone项目中过多的图片文件</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2010/03/tutorial-of-kissxml-iphone/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What is iPad All About?</title>
		<link>http://ixhan.com/2010/02/what-is-ipad-all-about/</link>
		<comments>http://ixhan.com/2010/02/what-is-ipad-all-about/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 16:58:41 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[Knowledge]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[experience]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[unity]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=266</guid>
		<description><![CDATA[What is iPad All About? With iPad devices, you now have an opportunity to create Multi-Touch applications on a larger display than previously available. The 1024 x 768 pixel screen provides much more room to display content, or provide greater detail for your existing content. And the addition of new interface elements in iPhone OS [...]]]></description>
			<content:encoded><![CDATA[<h1>What is iPad All About?</h1>
<p>With iPad devices, you now have an opportunity to create Multi-Touch applications on a larger display than previously available. The 1024 x 768 pixel screen provides much more room to display content, or provide greater detail for your existing content. And the addition of new interface elements in iPhone OS 3.2 enable an entirely new breed of applications.</p>
<p>The size and capabilities of iPad mean that it is now possible to create desktop-class applications for a portable device. The increased screen size gives you the space you need to present almost any kind of content. The Multi-Touch interface and support for physical keyboards enables diverse modes of interaction, ranging from simple gesture-drive interaction to content creation and substantial text input.</p>
<p>The increased screen size also makes it possible to create a new class of immersive applications that replicate real-world objects in a digital form. For example, the Contacts and Calendar applications on iPad look more like the paper-based address book and calendar you might have on your desk at home. These digital metaphors for real-life objects provide a more natural and familiar experience for the user and can make your applications more compelling to use. But because they are digital, you can go beyond the limitations of the physical objects themselves and create applications that enable greater productivity and convenience.</p>
<p>对于iPad,还是觉得得写点什么.<br />
这是开发文档中对iPad的定义,同志们,要领会党的精神呀!<br />
太晚了.明天继续.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2010/05/now-or-never/" title="now or never">now or never</a></li><li><a href="http://ixhan.com/2009/11/things-ive-done-in-past-5-months/" title="Things I&#8217;ve done int past 5 months">Things I&#8217;ve done int past 5 months</a></li><li><a href="http://ixhan.com/2009/10/how-software-companies-die/" title=" [转]软件公司是怎么死掉的"> [转]软件公司是怎么死掉的</a></li><li><a href="http://ixhan.com/2010/06/ibook-page-curl-animation/" title="iBook Page Curl Animation 翻页效果">iBook Page Curl Animation 翻页效果</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2010/02/what-is-ipad-all-about/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>永远的扫雷英雄(开源) 登场</title>
		<link>http://ixhan.com/2009/12/minesweeperever/</link>
		<comments>http://ixhan.com/2009/12/minesweeperever/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 16:40:04 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[Project]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[决定]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[cms]]></category>
		<category><![CDATA[编译]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[minesweeper]]></category>
		<category><![CDATA[minesweeperever]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=230</guid>
		<description><![CDATA[开源小游戏 永远的扫雷英雄 登场! 写这个游戏的目的就是想写个小教程,后来想想文字就算了,有问题直接留言或邮件更直接. 源码:http://github.com/xhan/minesweeperever 游戏介绍 MINE SWEEPER EVER是经典的扫雷iphone版本.你可以在app store上免费下载 Link 你可能可以学到什么 一个完整的游戏(片头,菜单,光卡,排行榜) 基本UIKIT界面的使用,手写和nib的混合 不同界面间传递消息 播放视频 简单游戏的状态机 UserDefault的使用和简单的排行榜 在编译之前 由于资源文件比较多,开场视频是大头,还有许多策划时涂鸦使用的ps文件,请移步下载 http://ixhan.com/kill/MineSweeperEver-Resource.zip 到当前目录并解压. 为什么写这个小游戏 半年前(May 2009)做毕业设计(PlutoCMS)的时候头昏脑涨,逐下载了iPhoneSDK把玩下,原意是测试下学校带宽并看看iPhone模拟器是什么样子的.结果控制不住看了 iPhone cookbook ,记得第一章有个教你嵌套绘制图层 和 响应手指点击的 两个片段 .于是就想到了由两个技术做个扫雷绰绰有余,两个晚上后做了个只能扫雷不能放置旗帜的半成品就撒手不管.继续回头研究俺的毕业设计了. 离职后的这段时间刚好有些空闲,决定把之前未完成的东西收尾,并开源给有需要的人.花费了一个下午修改完善了下之前的代码,又花了一个晚上和一个早上把其他东西(几个界面,排行榜)添加了上去.最后是UI方面,第一个晚上画了个logo,简单策划了下大概需要的素材,还找了美工朋友帮我画了个坑,可是第二天在ps中做素材发现还是无法掌控美术上的东西,干脆决定用windows上经典的界面. 等待9天后通过审核,然后在那天上海iphone会议上才在mars的真机上见到自己的程序(惭愧呀,iphone因经济危机被我卖了),感觉还不是特别糟糕.哈哈. 许多特性没来得及加上去: 互联网排行榜功能 退出保存当前状态功能 左右手不同界面 长按或双击添加/取消 旗帜功能 荣誉系统 ,包括炸死次数,成功次数,等等. 不过作为一个简单的教程应该还是够了.可能再过几个月闲的没事会改改~. 源码:http://github.com/xhan/minesweeperever Related Posts12月串烧-年轻人就要飘逸2009年10月15日DownloadsPlutoCMS! 基于ROR的内容管理系统]]></description>
			<content:encoded><![CDATA[<h2>开源小游戏 永远的扫雷英雄 登场!</h2>
<p>写这个游戏的目的就是想写个小教程,后来想想文字就算了,有问题直接留言或邮件更直接. <img src='http://ixhan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>源码:<a href="http://github.com/xhan/minesweeperever">http://github.com/xhan/minesweeperever</a></p>
<h2>游戏介绍</h2>
<p>MINE SWEEPER EVER是经典的扫雷iphone版本.你可以在app store上免费下载 <a href="http://itunes.apple.com/us/app/minesweeperever/id345567798?mt=8">Link</a></p>
<p><a href="http://ixhan.com/wp-content/uploads/2009/12/mainShot.jpg"><img class="alignnone size-full wp-image-231" title="mainShot-MineSweeperEver" src="http://ixhan.com/wp-content/uploads/2009/12/mainShot.jpg" alt="mainShot-MineSweeperEver" width="320" height="460" /></a></p>
<h2>你可能可以学到什么</h2>
<ul>
<li>一个完整的游戏(片头,菜单,光卡,排行榜)</li>
<li>基本UIKIT界面的使用,手写和nib的混合</li>
<li>不同界面间传递消息</li>
<li>播放视频</li>
<li>简单游戏的状态机</li>
<li>UserDefault的使用和简单的排行榜</li>
</ul>
<h2>在编译之前</h2>
<p>由于资源文件比较多,开场视频是大头,还有许多策划时涂鸦使用的ps文件,请移步下载 <code>http://ixhan.com/kill/MineSweeperEver-Resource.zip</code> 到当前目录并解压.</p>
<h2>为什么写这个小游戏</h2>
<p>半年前(May 2009)做毕业设计(<a href="http://ixhan.com/2009/10/plutocms-ruby-on-rails-cms/">PlutoCMS</a>)的时候头昏脑涨,逐下载了iPhoneSDK把玩下,原意是测试下学校带宽并看看iPhone模拟器是什么样子的.结果控制不住看了 iPhone cookbook ,记得第一章有个教你嵌套绘制图层 和 响应手指点击的 两个片段 .于是就想到了由两个技术做个扫雷绰绰有余,两个晚上后做了个只能扫雷不能放置旗帜的半成品就撒手不管.继续回头研究俺的毕业设计了.</p>
<p>离职后的这段时间刚好有些空闲,决定把之前未完成的东西收尾,并开源给有需要的人.花费了一个下午修改完善了下之前的代码,又花了一个晚上和一个早上把其他东西(几个界面,排行榜)添加了上去.最后是UI方面,第一个晚上画了个logo,简单策划了下大概需要的素材,还找了美工朋友帮我画了个坑,可是第二天在ps中做素材发现还是无法掌控美术上的东西,干脆决定用windows上经典的界面.</p>
<p>等待9天后通过审核,然后在那天上海iphone会议上才在mars的真机上见到自己的程序(惭愧呀,iphone因经济危机被我卖了),感觉还不是特别糟糕.哈哈.</p>
<p>许多特性没来得及加上去:</p>
<ul>
<li>互联网排行榜功能</li>
<li>退出保存当前状态功能</li>
<li>左右手不同界面</li>
<li>长按或双击添加/取消 旗帜功能</li>
<li>荣誉系统 ,包括炸死次数,成功次数,等等.</li>
</ul>
<p>不过作为一个简单的教程应该还是够了.可能再过几个月闲的没事会改改~.</p>
<p>源码:<a href="http://github.com/xhan/minesweeperever">http://github.com/xhan/minesweeperever</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2009/12/dec-review/" title="12月串烧-年轻人就要飘逸">12月串烧-年轻人就要飘逸</a></li><li><a href="http://ixhan.com/2009/10/15th/" title="2009年10月15日">2009年10月15日</a></li><li><a href="http://ixhan.com/downloads/" title="Downloads">Downloads</a></li><li><a href="http://ixhan.com/2009/10/plutocms-ruby-on-rails-cms/" title="PlutoCMS! 基于ROR的内容管理系统">PlutoCMS! 基于ROR的内容管理系统</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2009/12/minesweeperever/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>栽大了之Objc过度释放对象</title>
		<link>http://ixhan.com/2009/11/shit-on-objc-object-manager/</link>
		<comments>http://ixhan.com/2009/11/shit-on-objc-object-manager/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 09:37:28 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[决定]]></category>
		<category><![CDATA[内存管理]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[objective-c]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=196</guid>
		<description><![CDATA[事情是这样的,4个月前我写了份实现类似下拉框选择操作的界面. 一个月前,发现了这个View 在dealloc 会crash掉. 多次调试无果,上 devForum.apple.com 询问也无人问津. 今天决定再次调试下,还是没找到哪里出问题. 最后决定求助 cocoachina 上的现场观众 最后开始一行一行的注释代码做终极调试. 离谱的事情发现了,只要我创建一个名为 mainText 的 UILabel ,在dealloc 中程序就会crash ,改成其他名字无事.难道是apple的bug? 新写了个view测试了,还是没问题. 接着接着就发现了在dealloc方法中: [mainText release] ,mainText = nil; // NSLog(@"release %@",bgView); [bgView release]; // NSLog(@"release %@",originView); [originView release]; // NSLog(@"release %@",labelArray); [labelArray release]; // NSLog(@"release %@",mainText); [mainText release]; 该死的,不知道当时那根神经错了,居然释放了两次,当然出错咯.问题也解决了. 所以在确认释放对象的情况下一定要写成: [instance release],instance = nil ; 个人经验是,对于objective-c的内存管理都是得经过磨练才出来的,前期多犯错误是好事情. 当然我认识一个朋友 [...]]]></description>
			<content:encoded><![CDATA[<p>事情是这样的,4个月前我写了份实现类似下拉框选择操作的界面.<br />
一个月前,发现了这个View 在dealloc 会crash掉.<br />
多次调试无果,上 devForum.apple.com 询问也无人问津.<br />
今天决定再次调试下,还是没找到哪里出问题.<br />
最后决定求助 cocoachina 上的现场观众<br />
最后开始一行一行的注释代码做终极调试.</p>
<p>离谱的事情发现了,只要我创建一个名为 mainText 的 UILabel ,在dealloc 中程序就会crash ,改成其他名字无事.难道是apple的bug? 新写了个view测试了,还是没问题.</p>
<p>接着接着就发现了在dealloc方法中:<br />
<code> [mainText release] ,mainText = nil;<br />
//	NSLog(@"release %@",bgView);<br />
[bgView release];<br />
//	NSLog(@"release %@",originView);<br />
[originView release];<br />
//	NSLog(@"release %@",labelArray);<br />
[labelArray release];<br />
//	NSLog(@"release %@",mainText);<br />
[mainText release];<br />
</code><br />
该死的,不知道当时那根神经错了,居然释放了两次,当然出错咯.问题也解决了.</p>
<p>所以在确认释放对象的情况下一定要写成:<br />
[instance release],instance = nil ;</p>
<p>个人经验是,对于objective-c的内存管理都是得经过磨练才出来的,前期多犯错误是好事情.<br />
当然我认识一个朋友 ,他不释放任何对象,因为反正关闭iPhone后系统会处理的.这种觉悟不是大部分程序员有的,大家还是稳步前进咯.</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2009/12/minesweeperever/" title="永远的扫雷英雄(开源) 登场">永远的扫雷英雄(开源) 登场</a></li><li><a href="http://ixhan.com/2010/04/apple-such-a-bitch/" title="Apple 发疯了">Apple 发疯了</a></li><li><a href="http://ixhan.com/2009/12/dec-review/" title="12月串烧-年轻人就要飘逸">12月串烧-年轻人就要飘逸</a></li><li><a href="http://ixhan.com/2009/11/things-ive-done-in-past-5-months/" title="Things I&#8217;ve done int past 5 months">Things I&#8217;ve done int past 5 months</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2009/11/shit-on-objc-object-manager/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Things I&#8217;ve done int past 5 months</title>
		<link>http://ixhan.com/2009/11/things-ive-done-in-past-5-months/</link>
		<comments>http://ixhan.com/2009/11/things-ive-done-in-past-5-months/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 16:07:08 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[Project]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=184</guid>
		<description><![CDATA[It&#8217;s awfully to say that Time is running out fast , but it really does. I&#8217;ve been working as a iPhone application developer for five months  ,devoting all my energy to my job . Thanks to company&#8217;s trust , now I am the core architect and team leader of our small group . We&#8217;ve redesigned [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s awfully to say that Time is running out fast , but it really does.</p>
<p>I&#8217;ve been working as a iPhone application developer for five months  ,devoting all my energy to my job . Thanks to company&#8217;s trust , now I am the core architect and team leader of our small group .</p>
<p>We&#8217;ve redesigned most of default iPhone UI components which is  really a difficult job at first . After a several  days of hardworking  ,We released first custom components named &#8216;MeeTabBarController&#8217; , which is more powerful , flexible, and has ability to manage animations for each tabBar ,each container view&#8217;s opening animations and  closing animations. It really works great and appears amazing.</p>
<p>Since now We&#8217;ve achieved the custom NavigationController, which has more delegate methods , a incredible user interface  and animations. the custom alertView , the custom tableViewController , the custom spring board , the custom http-client for fetching remote data , etc .</p>
<p>It would be no exaggeration to say that our custom framework is just another lite version of Three20 .^^</p>
<p>Here is a Preview version of Our Project:</p>
<table border="1">
<tbody>
<tr>
<td>Name</td>
<td>Lines</td>
<td>Files</td>
</tr>
<tr>
<td>Third part header</td>
<td>2360</td>
<td>34</td>
</tr>
<tr>
<td>Third part Source</td>
<td>4916</td>
<td>38</td>
</tr>
<tr>
<td>Project Header</td>
<td>7222</td>
<td>170</td>
</tr>
<tr>
<td>Project Source</td>
<td>28330</td>
<td>173</td>
</tr>
<tr>
<td>Total</td>
<td>42828</td>
<td>415</td>
</tr>
<tr>
<td>Total Pngs</td>
<td></td>
<td>431</td>
</tr>
</tbody>
</table>
<p>Here is a snap shoot of our another application which had submitted to apple store and ready for sale .<br />
It just a simple application that in order to test whether our designs and functions will be rejected or permitted by apple ,Thankfully ,after a mistake that was rejected by undocument api  ,It&#8217;s status came out to be  ready for sale finally.</p>
<p><img class="alignleft" title="RateView" src="http://www.animationlife.net/blog/wp-content/uploads/2009/11/IMG_0072.jpg" alt="" width="192" height="276" /><img class="alignleft" title="MainView" src="http://www.animationlife.net/blog/wp-content/uploads/2009/11/IMG_0073.jpg" alt="" width="192" height="276" /></p>
<p><br class="clear"><br />
You can search it by type its name &#8220;Grading&#8221; ,it&#8217;s also based on our custom framework and I cost 3 days to finish it.<br />
Give a try and feel free to comment it  !(Note :  we put off the sale date of this application for the moment by some conditions)</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2010/03/tutorial-of-kissxml-iphone/" title="Tutorial of  kissXML(iPhone)">Tutorial of  kissXML(iPhone)</a></li><li><a href="http://ixhan.com/2010/05/now-or-never/" title="now or never">now or never</a></li><li><a href="http://ixhan.com/2010/02/what-is-ipad-all-about/" title="What is iPad All About?  ">What is iPad All About?  </a></li><li><a href="http://ixhan.com/2009/12/minesweeperever/" title="永远的扫雷英雄(开源) 登场">永远的扫雷英雄(开源) 登场</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2009/11/things-ive-done-in-past-5-months/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>将编译好的iPhone程序的PNG还原</title>
		<link>http://ixhan.com/2009/10/convert-iphone-png-to-origin/</link>
		<comments>http://ixhan.com/2009/10/convert-iphone-png-to-origin/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 09:41:12 +0000</pubDate>
		<dc:creator>xhan</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[破解]]></category>
		<category><![CDATA[编译]]></category>
		<category><![CDATA[decoding]]></category>
		<category><![CDATA[解码]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://ixhan.com/?p=126</guid>
		<description><![CDATA[iPhone程序包中的png文件是经过处理，不能直接查看。 如果一定要看！！！好了，这个工具能满足你的好奇心。 Name: iPhonePNG Usage:  ./iPhonePNG &#60;input&#62;   input 可以是单个png文件也可以是文件夹 download:  iPhonePNGdecoding 以下链接能了解更多这个格式的细节： Wiki for this png format The author&#8217;s post for this tools Related Postsnow or neverTutorial of kissXML(iPhone)永远的扫雷英雄(开源) 登场普通用户如何用iPhone一年赚几万]]></description>
			<content:encoded><![CDATA[<p>iPhone程序包中的png文件是经过处理，不能直接查看。</p>
<p>如果一定要看！！！好了，这个工具能满足你的好奇心。</p>
<p style="padding-left: 30px;">Name: iPhonePNG<br />
Usage:  ./iPhonePNG &lt;input&gt;   input 可以是单个png文件也可以是文件夹<br />
download:  <a rel="attachment wp-att-127" href="http://ixhan.com/2009/10/convert-iphone-png-to-origin/iphonepngdecoding/">iPhonePNGdecoding</a></p>
<p>以下链接能了解更多这个格式的细节：</p>
<p><a href="http://modmyi.com/wiki/index.php/Iphone_PNG_images">Wiki for this png format</a><br />
<a href="http://www.newsfirerss.com/blog/?p=176">The author&#8217;s post for this tools</a></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li><a href="http://ixhan.com/2010/05/now-or-never/" title="now or never">now or never</a></li><li><a href="http://ixhan.com/2010/03/tutorial-of-kissxml-iphone/" title="Tutorial of  kissXML(iPhone)">Tutorial of  kissXML(iPhone)</a></li><li><a href="http://ixhan.com/2009/12/minesweeperever/" title="永远的扫雷英雄(开源) 登场">永远的扫雷英雄(开源) 登场</a></li><li><a href="http://ixhan.com/2009/11/how-do-customer-earn-money-on-iphone/" title="普通用户如何用iPhone一年赚几万">普通用户如何用iPhone一年赚几万</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://ixhan.com/2009/10/convert-iphone-png-to-origin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
