<?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>iPhone SDK develop &#38; programming tips &#187; 编程开发</title>
	<atom:link href="http://www.flyblog.info/category/catprogramming/feed" rel="self" type="application/rss+xml" />
	<link>http://www.flyblog.info</link>
	<description>ideas for programming</description>
	<lastBuildDate>Fri, 20 May 2011 09:49:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>如何使用.net实现iPhone和电脑之间的文件传输</title>
		<link>http://www.flyblog.info/catprogramming/486.html</link>
		<comments>http://www.flyblog.info/catprogramming/486.html#comments</comments>
		<pubDate>Thu, 19 May 2011 16:08:50 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[文件传输]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=486</guid>
		<description><![CDATA[言归正传， 现在iPhone越来越火了， 各种iPhone周边的应用需求也就越来越大。 AppStore更不必说，那是相当的火， 另外就是对iPhone进行管理的相关桌软件，像国内的91手机助手， QQ手机助手等都可以对iPhone的文件进行管理，国外的软件就更多的不计其数了。 

其实， 这类软件的实现也不是非常难， 大多数都是通过调用Apple的动态库函数来实现iPhone和电脑的通信。常用的动态库包括MobileDevice.dll、CoreFoundary.dll等几个。 虽然都是apple自己提供的，但iTunes中并没有开放更多多的功能，比如直接往iPhone、iPad上拷贝文件，从iPad或者iPhone上直接拷贝文件到windows等。所以，我们可以通过apple提供的库函数来实现这样的需求。 ]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/486.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>iPhone开发中内存的合理使用</title>
		<link>http://www.flyblog.info/catprogramming/429.html</link>
		<comments>http://www.flyblog.info/catprogramming/429.html#comments</comments>
		<pubDate>Thu, 11 Mar 2010 18:00:35 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[内存]]></category>
		<category><![CDATA[内存泄露]]></category>
		<category><![CDATA[内存管理]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=429</guid>
		<description><![CDATA[<img class="size-full wp-image-430"  style="float:left;" title="iPhone 内存管理" src="http://www.flyblog.info/wp-content/uploads/2010/03/learnobjectivec-objectwithrefcount.png" alt="内存管理" width="121" height="172" /> iPhone 开发过程中，内存的使用至关重要。不但要合理分配使用内存，还要注意内存泄露的问题， 因为内存泄露会导致程序由于内存不足而崩溃。根据个人开发的经验来看，在开发iPhone程序的过程中，关于内存的问题需要注意以下几点：]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/429.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>关于iPhone开发库引用的问题</title>
		<link>http://www.flyblog.info/catprogramming/427.html</link>
		<comments>http://www.flyblog.info/catprogramming/427.html#comments</comments>
		<pubDate>Fri, 11 Dec 2009 17:18:40 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[selector]]></category>
		<category><![CDATA[Three20]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=427</guid>
		<description><![CDATA[最近的项目用到了著名的Three20界面库， 程序发布完成结果背Apple拒绝，理由是使用了Private APIs， 没话说，肯定是Three20的问题。
于是获取最新代码，编译之后对可执行文件进行扫描确认没有Private APIs被调用了之后再build最终版本以提交App Store， 不知道是哪根筋不对突然觉得是否应该在真机上编译个release版本再提交，不然又要等若干天，万一被打回又得耽误功夫。
果然，一试吓一跳， 无法运行，原因是Three20中的所有对SDK种类的扩展都没被打包编译进来，运行时无法找到相应的selector，当然就crash了
开始是google搜寻答案，屡试之后，静下心来看看Three20的文档， 看到最后才恍然大悟，原来还需要一个 -all_load 连接选项。添加后编译运行，一切顺利， god。
然后翻阅水果文档，才知道 -all_load link option连接选项是告诉编译器将所连接的库全部包含，而不是用到才引入。


No related posts.]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/427.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>iPhone开发中的问题整理（一）</title>
		<link>http://www.flyblog.info/catprogramming/423.html</link>
		<comments>http://www.flyblog.info/catprogramming/423.html#comments</comments>
		<pubDate>Fri, 23 Oct 2009 08:11:20 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[开发]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=423</guid>
		<description><![CDATA[看到很刚开始开发iPhone软件的朋友问很多问题，其实同样的问题我也碰到过， 所以抽时间把能想到的或者碰到的问题汇总一下， 一来可以给自己做个备忘也可以和朋友们分享探讨。]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/423.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>ZipArchive has been updated to version 1.1 (更新至1.1版）</title>
		<link>http://www.flyblog.info/catprogramming/419.html</link>
		<comments>http://www.flyblog.info/catprogramming/419.html#comments</comments>
		<pubDate>Tue, 20 Oct 2009 01:52:02 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[compress]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[uncompress]]></category>
		<category><![CDATA[unzip]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=419</guid>
		<description><![CDATA[ZipArchive is a wrapper class to compress and uncompress zip files for Objective-C and cocoa use. It's developed based on minizip and zlib. ]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/419.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>iPhone 开发最实用网站</title>
		<link>http://www.flyblog.info/catprogramming/417.html</link>
		<comments>http://www.flyblog.info/catprogramming/417.html#comments</comments>
		<pubDate>Mon, 19 Oct 2009 08:51:14 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=417</guid>
		<description><![CDATA[iPhone越来越普及， 从而越来越多的人加入到了iPhone开发的行列， 还记得大概2年前刚开始iPhone SDK开发的时候苦于四处寻找资料， 当时国内相关内容少的可怜， 只有cocoachina 及论坛。 大多数时候泡在apple 官方论坛。 现在不同了， 各类iPhone相关的网站可谓铺天盖地， 其中内容重复的也不在少数， 个人经常上的只有几个， 在此列出共大家参考：]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/417.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create custom checkbox style button for iPhone</title>
		<link>http://www.flyblog.info/catprogramming/409.html</link>
		<comments>http://www.flyblog.info/catprogramming/409.html#comments</comments>
		<pubDate>Mon, 19 Oct 2009 08:19:39 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[CheckBox Button]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[custom view]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[Objective-C]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=409</guid>
		<description><![CDATA[Recently, I got a task to develop an application for iPhone. In the application,  there are some optional choices for user to decide further processes. The first idea jumps out from my head is something like button with a checkbox just the same as other desktop platforms, but unfortunately, iPhone SDK doesn't provide such view. The only official choice is the ON&#124;OFF switch view,  but it really can't represent the actually meaning of the options. So comes out the idea of writing  custom checkbox style button.]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/409.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>升级到 iDeneb 10.5.8，并解决xcode调试断点问题</title>
		<link>http://www.flyblog.info/catprogramming/403.html</link>
		<comments>http://www.flyblog.info/catprogramming/403.html#comments</comments>
		<pubDate>Thu, 15 Oct 2009 01:27:25 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[iDeneb 10.5.8]]></category>
		<category><![CDATA[XCode]]></category>
		<category><![CDATA[断点]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=403</guid>
		<description><![CDATA[Snow Leopard正式版已经发布有一段时间了，看了一下iHackintosh的介绍，升级到Snow Leopard需要一块新的硬盘，作罢。 今天抽空将iDeneb系统升级到10.5.8， 升级过程非常简单，如果已经是10.5.7系统就下载官方更新包Delta update（274MB)， 如果是低版本则下载Combo update（759MB)。 在升级之前，还需要下载osx86tools。]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/403.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>根据经纬度计算两点之间的距离代码</title>
		<link>http://www.flyblog.info/catprogramming/400.html</link>
		<comments>http://www.flyblog.info/catprogramming/400.html#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:40:18 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[经纬度]]></category>
		<category><![CDATA[距离]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=400</guid>
		<description><![CDATA[今天看到cocoachina有人问起这个问题， 正好把好久以前的一段代码发了上来， 这段代码已经经过验证，精度还是可以保障的， 对于不同的应用需要更换调整地球半径值 ，先看代码

?View Code OBJC1
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
37
38
39
40
41
42
#define PI 3.1415926
&#160;
double LantitudeLongitudeDist&#40;double lon1,double lat1,
							  double lon2,double lat2&#41;
&#123;
	double er = 6378137; // 6378700.0f;
	//ave. radius = 6371.315 (someone said more accurate is 6366.707)
	//equatorial radius = 6378.388
	//nautical mile = 1.15078
	double radlat1 = PI*lat1/180.0f;
	double radlat2 = PI*lat2/180.0f;
&#160;
	//now long.
	double radlong1 = PI*lon1/180.0f;
	double radlong2 = PI*lon2/180.0f;
&#160;
	if&#40; radlat1 &#38;lt; 0 &#41; radlat1 = [...]]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/400.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone SDK开发： 如何上传图片文件到服务器</title>
		<link>http://www.flyblog.info/catprogramming/392.html</link>
		<comments>http://www.flyblog.info/catprogramming/392.html#comments</comments>
		<pubDate>Wed, 05 Aug 2009 02:54:44 +0000</pubDate>
		<dc:creator>Flyblog</dc:creator>
				<category><![CDATA[编程开发]]></category>
		<category><![CDATA[iPhone SDK]]></category>
		<category><![CDATA[to server]]></category>
		<category><![CDATA[上传文件，upload picture]]></category>

		<guid isPermaLink="false">http://www.flyblog.info/?p=392</guid>
		<description><![CDATA[现成的代码， 如果不想压缩，可以去掉zlib 
头文件

?View Code OBJC1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@interface EPUploader : NSObject &#123;
    NSURL *serverURL;
    NSString *filePath;
    id delegate;
    SEL doneSelector;
    SEL errorSelector;
&#160;
    BOOL uploadDidSucceed;
&#125;
&#160;
-   &#40;id&#41;initWithURL: &#40;NSURL *&#41;serverURL
        filePath: &#40;NSString *&#41;filePath
  [...]]]></description>
		<wfw:commentRss>http://www.flyblog.info/catprogramming/392.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

