<?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; NSArray</title>
	<atom:link href="http://blog.prosight.me/index.php/tag/nsarray/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>将Array、Dictionary等集合类的序列化和反序列化</title>
		<link>http://blog.prosight.me/index.php/2010/02/582?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e5%25b0%2586array%25e3%2580%2581dictionary%25e7%25ad%2589%25e9%259b%2586%25e5%2590%2588%25e7%25b1%25bb%25e7%259a%2584%25e5%25ba%258f%25e5%2588%2597%25e5%258c%2596%25e5%2592%258c%25e5%258f%258d%25e5%25ba%258f%25e5%2588%2597%25e5%258c%2596</link>
		<comments>http://blog.prosight.me/index.php/2010/02/582#comments</comments>
		<pubDate>Mon, 15 Feb 2010 12:43:17 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[NSArray]]></category>
		<category><![CDATA[NSDictionary]]></category>
		<category><![CDATA[writeToFile]]></category>

		<guid isPermaLink="false">http://blog.prosight.me/?p=582</guid>
		<description><![CDATA[Objective-C的集合类序列化到文件中或者从文件中反序列化其实很简单，请看下面的示例代码： 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 NSArray *array = &#91;NSArray arrayWithObjects: @&#34;Hefeweizen&#34;, @&#34;IPA&#34;, @&#34;Pilsner&#34;, @&#34;Stout&#34;, nil&#93;; &#160; NSDictionary *dictionary = &#91;NSDictionary dictionaryWithObjectsAndKeys: array, @&#34;array&#34;, [...]]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2010/02/582/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>NSArray 和 KVC</title>
		<link>http://blog.prosight.me/index.php/2009/11/455?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nsarray-%25e5%2592%258c-kvc</link>
		<comments>http://blog.prosight.me/index.php/2009/11/455#comments</comments>
		<pubDate>Wed, 04 Nov 2009 02:03:52 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[KVC]]></category>
		<category><![CDATA[NSArray]]></category>

		<guid isPermaLink="false">http://blog.prosight.me/?p=455</guid>
		<description><![CDATA[Theocoacao有篇不错的介绍NSArray和KVC的文章，我给粗略翻译了一下。 NSArray的-valueForKey: 有一个不是很显著的特性. 你可以使用它返回一个由tree对象包装的值对象的数组。这句话可能不是很容易理解，看下面的例子就清楚了。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 NSMutableArray * tree = &#91;NSMutableArray array&#93;; NSDictionary   * p = nil;   // parent NSDictionary   * c = nil;   // child NSNumber       * n = nil;   // value int i; &#160; for &#40; [...]]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2009/11/455/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Objective-C中切分数组</title>
		<link>http://blog.prosight.me/index.php/2009/09/355?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=objective-c%25e4%25b8%25ad%25e5%2588%2587%25e5%2588%2586%25e6%2595%25b0%25e7%25bb%2584</link>
		<comments>http://blog.prosight.me/index.php/2009/09/355#comments</comments>
		<pubDate>Thu, 10 Sep 2009 23:26:18 +0000</pubDate>
		<dc:creator>Elton</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[NSArray]]></category>
		<category><![CDATA[objective-c]]></category>

		<guid isPermaLink="false">http://blog.prosight.me/?p=355</guid>
		<description><![CDATA[在很多脚本语言如ruby,python中都有将字符串切分成数组或者将数组元素以某个间隔字符串间隔形成新的数组。 其实NSArray也提供了这样的功能。 使用-componentsSeparatedByString:来切分NSArray。 如： 1 2 NSString *string = @&#34;white:black:blue:red&#34;; NSArray *aArray = &#91;string componentsSeparatedByString:@&#34;:&#34;&#93;; 用-componentsJoinedByString:来合并NSArray中的各个元素并创建一个新的字符串，如： 1 string = &#91;aArray componentsJoinedByString:@&#34;,&#34;&#93;; 这样，上面的数组就中的各个元素就以”,”分割形成一个字符串。]]></description>
		<wfw:commentRss>http://blog.prosight.me/index.php/2009/09/355/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

