<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_不及格的程序员-八神</title><subtitle type="text"/><id>http://feed.cnblogs.com/blog/u/50829/rss</id><updated>2012-02-02T07:05:28Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/50829/rss"/><entry><id>http://www.cnblogs.com/ioriwellings/archive/2012/02/02/2335812.html</id><title type="text">越狱与非越狱设备写权限区别</title><summary type="text">越狱设备具有程序所在文件夹的读写权限，而非越狱设备只能写document目录，对于程序文件夹的写也是白写，不会记忆的。</summary><published>2012-02-02T07:05:00Z</published><updated>2012-02-02T07:05:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2012/02/02/2335812.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2012/02/02/2335812.html"/><content type="html">&lt;p&gt;越狱设备具有程序所在文件夹的读写权限，而非越狱设备只能写document目录，对于程序文件夹的写也是白写，不会记忆的。&lt;/p&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2335812.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2012/02/02/2335812.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/ioriwellings/archive/2012/01/09/2317252.html</id><title type="text">赞,街旁网点亮地图的创意.</title><summary type="text">最近(2011年)一款lbs类型手机客户端在广告市场打的火热-&amp;gt; 街旁.它推出一个非常有创意也非常有意思的功能,点亮地图,应用的技术 为 http://code.google.com/intl/zh-cn/apis/maps/documentation/javascript/examples/maptype-overlay.html虽然技术普通,不得不说,只有想不到,没有做不到.</summary><published>2012-01-09T08:13:00Z</published><updated>2012-01-09T08:13:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2012/01/09/2317252.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2012/01/09/2317252.html"/><content type="html">&lt;p&gt;最近(2011年)一款lbs类型手机客户端在广告市场打的火热-&amp;gt; 街旁.&lt;/p&gt;&#xD;
&lt;p&gt;它推出一个非常有创意也非常有意思的功能,点亮地图,&lt;/p&gt;&#xD;
&lt;p&gt;应用的技术 为 http://code.google.com/intl/zh-cn/apis/maps/documentation/javascript/examples/maptype-overlay.html&lt;/p&gt;&#xD;
&lt;p&gt;虽然技术普通,不得不说,只有想不到,没有做不到.&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2317252.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2012/01/09/2317252.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/ioriwellings/archive/2011/12/01/2270740.html</id><title type="text">Infinity Blade2 (无尽之刃2)通关</title><summary type="text">时隔一年之后这款游戏终于在今天出了第二版了，将它认为是历史上最强的iPhone 3D游戏一点都不过份。首先从南太平洋的新西兰store区下载，4小时后我将其通关。游戏故事曲折，不过还是没能将整个故事讲述请楚，最后还是留下后手与悬念，主角再次陷入痛苦，而它的搭档爱莎又会踏上拯救他的路程。更多图片在相册中 进入相册 http://www.cnblogs.com/ioriwellings/gallery/339591.html</summary><published>2011-12-01T08:02:00Z</published><updated>2011-12-01T08:02:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2011/12/01/2270740.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2011/12/01/2270740.html"/><content type="html">&lt;p&gt;时隔一年之后这款游戏终于在今天出了第二版了，将它认为是历史上最强的iPhone 3D游戏一点都不过份。&lt;/p&gt;&#xD;
&lt;p&gt;首先从南太平洋的新西兰store区下载，4小时后我将其通关。&lt;/p&gt;&#xD;
&lt;p&gt;游戏故事曲折，不过还是没能将整个故事讲述请楚，最后还是留下后手与悬念，主角再次陷入痛苦，而它的搭档爱莎又会踏上拯救他的路程。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;img src="http://images.cnblogs.com/cnblogs_com/ioriwellings/339591/r_Infinity%20Blade2%20001.jpg" alt="" width="640" height="427" /&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;img src="http://images.cnblogs.com/cnblogs_com/ioriwellings/339591/r_Infinity%20Blade2%20002.jpg" alt="" width="640" height="427" /&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;img src="http://images.cnblogs.com/cnblogs_com/ioriwellings/339591/r_Infinity%20Blade2%20004.jpg" alt="" width="640" height="427" /&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;img src="http://images.cnblogs.com/cnblogs_com/ioriwellings/339591/r_Infinity%20Blade2%20005.jpg" alt="" width="640" height="427" /&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;img src="http://images.cnblogs.com/cnblogs_com/ioriwellings/339591/r_Infinity%20Blade2%20004.jpg" alt="" /&gt;&lt;/p&gt;&#xD;
&lt;p&gt;更多图片在相册中 &amp;nbsp;&lt;a title="点击进入" href="http://www.cnblogs.com/ioriwellings/gallery/339591.html" target="_blank"&gt;进入相册 http://www.cnblogs.com/ioriwellings/gallery/339591.html&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2270740.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2011/12/01/2270740.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/ioriwellings/archive/2011/11/25/2263287.html</id><title type="text">iOS编程陷井2，模拟器不可靠</title><summary type="text">同样的代码，模拟器下不工作，真机下可以循环播放。MPMoviePlayerController *theMovie = [[MPMoviePlayerControlleralloc] initWithContentURL:[NSURLfileURLWithPath:[[NSBundlemainBundle] pathForResource:@&amp;quot;＊＊＊&amp;quot;ofType:@&amp;quot;mp4&amp;quot;] ]];theMovie.repeatMode=MPMovieRepeatModeOne;theMovie.view.frame = self.view.bounds;[self</summary><published>2011-11-25T07:04:00Z</published><updated>2011-11-25T07:04:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2011/11/25/2263287.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2011/11/25/2263287.html"/><content type="html">&lt;p&gt;同样的代码，模拟器下不工作，真机下可以循环播放。&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span&gt;MPMoviePlayerController&lt;/span&gt;&lt;span&gt; *theMovie = [[&lt;/span&gt;&lt;span&gt;MPMoviePlayerController&lt;/span&gt;alloc&lt;span&gt;] &lt;/span&gt;initWithContentURL&lt;span&gt;:[&lt;/span&gt;&lt;span&gt;NSURL&lt;/span&gt;fileURLWithPath&lt;span&gt;:[[&lt;/span&gt;&lt;span&gt;NSBundle&lt;/span&gt;mainBundle&lt;span&gt;] &lt;/span&gt;pathForResource&lt;span&gt;:&lt;/span&gt;&lt;span&gt;@"＊＊＊"&lt;/span&gt;ofType&lt;span&gt;:&lt;/span&gt;&lt;span&gt;@"mp4"&lt;/span&gt;&lt;span&gt;] ]];&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span&gt;theMovie.&lt;/span&gt;&lt;span&gt;repeatMode&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;MPMovieRepeatModeOne&lt;span&gt;;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span&gt;theMovie.&lt;/span&gt;view&lt;span&gt;.&lt;/span&gt;frame&lt;span&gt; = &lt;/span&gt;&lt;span&gt;self&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;view&lt;span&gt;.&lt;/span&gt;bounds&lt;span&gt;;&lt;/span&gt;&lt;/p&gt;&#xD;
&lt;p&gt;[&lt;span&gt;self&lt;/span&gt;.&lt;span&gt;view&lt;/span&gt; &lt;span&gt;addSubview&lt;/span&gt;:theMovie.&lt;span&gt;view&lt;/span&gt;];&lt;/p&gt;&#xD;
&lt;p&gt;&lt;span&gt;theMovie.&lt;/span&gt;&lt;span&gt;scalingMode&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;MPMovieScalingModeAspectFill&lt;span&gt;;&lt;/span&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2263287.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2011/11/25/2263287.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/ioriwellings/archive/2011/11/18/2253688.html</id><title type="text">苹果Lion 操作系统还没到成熟时</title><summary type="text">无线路由识别问题iMac27下无线路由器设置40MHz通道能连上,但无法正确获取IP地址，但我的iPhone4,iPad,iPod均能连接，后来手动设置成20MHZ成功正确获取ip. 这个问题浪费我半天时间，因为iMac是双系统，win7没有此问题可以正确识别无线路由器，所以只好在路由上的设置作各种测试，网上查了一下，遇到此问题的不只我一个。app store软件升级断点续传问题在从xcode4.0升级到4.2的过程中，每次将要完成时都会重头开始再来。。。反复好几次，最后才算成功，600多MB啊，玩呢？</summary><published>2011-11-18T02:58:00Z</published><updated>2011-11-18T02:58:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2011/11/18/2253688.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2011/11/18/2253688.html"/><content type="html">&lt;p&gt;&lt;strong&gt;&lt;em&gt;无线路由识别问题&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt;iMac27下无线路由器设置40MHz通道能连上,但无法正确获取IP地址，但我的iPhone4,iPad,iPod均能连接，后来手动设置成20MHZ成功正确获取ip. 这个问题浪费我半天时间，因为iMac是双系统，win7没有此问题可以正确识别无线路由器，所以只好在路由上的设置作各种测试，网上查了一下，遇到此问题的不只我一个。&lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;app store软件升级断点续传问题&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt;在从xcode4.0升级到4.2的过程中，每次将要完成时都会重头开始再来。。。反复好几次，最后才算成功，600多MB啊，玩呢？&lt;/em&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2253688.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2011/11/18/2253688.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/ioriwellings/archive/2011/11/03/2234309.html</id><title type="text">object file format unrecognized, invalid, or unsuitable Command</title><summary type="text">在build ios项目时，出现了这样的错误，仔细检测过不是因为开发证书的问题，而是缺少文件造成的，将xcode目录中的签名文件copy到系统目录即可。这是在一台新装的mac上产生的，估计是因为新装的xcode没有装完全造成的。sudo mv /usr/bin/codesign_allocate /usr/bin/codesign_allocate_oldsudo ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate /usr/bin</summary><published>2011-11-03T03:27:00Z</published><updated>2011-11-03T03:27:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2011/11/03/2234309.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2011/11/03/2234309.html"/><content type="html">&lt;pre &gt;&lt;code&gt;&lt;span &gt;在build ios项目时，出现了这样的错误，仔细检测过不是因为开发证书的问题，而是缺少文件造成的，将xcode目录中的签名文件copy到系统目录即可。&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&#xD;
&lt;pre &gt;这是在一台新装的mac上产生的，估计是因为新装的xcode没有装完全造成的。&lt;/pre&gt;&#xD;
&lt;pre &gt;&lt;code&gt;&lt;span &gt;sudo mv &lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;usr&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;bin&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;codesign_allocate &lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;usr&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;bin&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;codesign_allocate_old&lt;br /&gt;sudo ln &lt;/span&gt;&lt;span &gt;-&lt;/span&gt;&lt;span &gt;s &lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;Developer&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;Platforms&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;iPhoneOS&lt;/span&gt;&lt;span &gt;.&lt;/span&gt;&lt;span &gt;platform&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;Developer&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;usr&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;bin&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;codesign_allocate &lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;usr&lt;/span&gt;&lt;span &gt;/&lt;/span&gt;&lt;span &gt;bin&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2234309.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2011/11/03/2234309.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/ioriwellings/archive/2011/11/02/2232942.html</id><title type="text">My new iMac 27</title><summary type="text">iMac 27 12GB Memory.用来贴补家用，有需要开发项目的可以与我联系 asp.net、组件开发 ,java,javascript,xml/xslt,objective-c 什么都行</summary><published>2011-11-02T05:15:00Z</published><updated>2011-11-02T05:15:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2011/11/02/2232942.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2011/11/02/2232942.html"/><content type="html">&lt;p&gt;iMac 27 12GB Memory.&amp;nbsp;用来贴补家用，有需要开发项目的可以与我联系 &amp;nbsp;asp.net、组件开发 ,java,javascript,xml/xslt,objective-c 什么都行&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;img src="http://pic002.cnblogs.com/images/2011/47234/2011110213133336.jpg" alt="" /&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2232942.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2011/11/02/2232942.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/ioriwellings/archive/2011/10/22/2221067.html</id><title type="text">键盘控制</title><summary type="text">Beginning iOS 4 Application Development6. Keyboard inputswhAt yOu will leArn in thiS chApterHow to customize the keyboard for diff erent types of inputsHow to hide the keyboard when you are done typingHow to detect when a keyboard is visible or notHow to use ScrollView to contain other viewsHow to s</summary><published>2011-10-22T03:55:00Z</published><updated>2011-10-22T03:55:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2011/10/22/2221067.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2011/10/22/2221067.html"/><content type="html">&lt;p&gt;Beginning iOS 4 Application Development&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;6. Keyboard inputs&lt;br /&gt;whAt yOu will leArn in thiS chApter&lt;br /&gt;How to customize the keyboard for diff erent types of inputs&lt;br /&gt;How to hide the keyboard when you are done typing&lt;br /&gt;How to detect when a keyboard is visible or not&lt;br /&gt;How to use ScrollView to contain other views&lt;br /&gt;How to shift views to make way for the keyboard&lt;br /&gt;One of the controversial aspects of the iPhone is the multi-touch keyboard that enables users &lt;br /&gt;to input data into their iPhone. Critics of the iPhone have criticized its lack of a physical key-&lt;br /&gt;board for data entry, whereas ardent supporters of virtual keyboards swear by its ease of use. &lt;br /&gt;What makes the iPhone keyboard so powerful is its intelligence in tracking what you type, &lt;br /&gt;followed by suggestions for the word you are typing, and automatically correcting the spelling &lt;br /&gt;and inserting punctuation for you. What&amp;rsquo;s more, the keyboard knows when to appear at the &lt;br /&gt;right time &amp;mdash; it appears when you tap a Text Field view, and it goes away automatically when &lt;br /&gt;you tap a non-input view. You can also input data in different languages.&lt;br /&gt;For iPhone application programmers, the key concern is how to integrate the keyboard into the &lt;br /&gt;application. How do you make the keyboard go away naturally when it is no longer needed? &lt;br /&gt;And how do you ensure that the view the user is currently interacting with is not blocked by the &lt;br /&gt;keyboard? In this chapter, you learn various ways to deal with the keyboard programmatically.&amp;nbsp;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;iPad开发基础教程&lt;/p&gt;&#xD;
&lt;p&gt;9. 新的输入方法&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;iPhone_and_iPad_in_Action(iOS3.2 and iOS4)&lt;br /&gt;19.1 Custom keyboard accessories&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;iphone sdk 3 programming advanced mobile development for apple iphone and ipod touch&lt;br /&gt;16 Custom UI Components&lt;br /&gt;16.1 Text Field Alert View&lt;br /&gt;16.2 Table Alert View&lt;br /&gt;16.3 Progress Alert View&amp;nbsp;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2221067.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2011/10/22/2221067.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/ioriwellings/archive/2011/09/20/2182551.html</id><title type="text">iPad 开发陷井1</title><summary type="text">在我开发通用版儿童教育类 iOS App&amp;lt;&amp;lt;单刀会&amp;gt;&amp;gt;中遇到了如下小陷井:在iOS设备中播放视频,iPad与iPhone在界面与形为上有一点小差别....,iPad默认情况会在视频控制器右上角多出一个切换全屏的按钮。同样的代码形成的效果见截图:MPMoviePlayerController *theMovie = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@&amp;quot;Desc&amp;quot</summary><published>2011-09-20T07:46:00Z</published><updated>2011-09-20T07:46:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2011/09/20/2182551.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2011/09/20/2182551.html"/><content type="html">&lt;p&gt;在我开发通用版儿童教育类 iOS App&amp;lt;&amp;lt;&lt;a href="http://itunes.apple.com/cn/app/id463416201?mt=8" target="_blank" data-mce-href="http://itunes.apple.com/cn/app/id463416201?mt=8"&gt;单刀会&lt;/a&gt;&amp;gt;&amp;gt;中遇到了如下小陷井:&lt;/p&gt;&lt;p&gt;在iOS设备中播放视频,iPad与iPhone在界面与形为上有一点小差别....,iPad默认情况会在视频控制器右上角多出一个切换全屏的按钮。&lt;/p&gt;&lt;p&gt;同样的代码形成的效果见截图:&lt;/p&gt;&lt;p&gt;MPMoviePlayerController *theMovie = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Desc" ofType:@"mp4"] ]];&lt;br&gt; &lt;br&gt;&amp;nbsp;[self.view addSubview:theMovie.view];&lt;br&gt;&amp;nbsp;theMovie.controlStyle = MPMovieControlStyleDefault; // 实际上在ios文件当说该枚举与MPMovieControlStyleFullscreen是一致的,可是实际效果却有一个小偏差&lt;br&gt; theMovie.scalingMode = MPMovieScalingModeAspectFill;&lt;br&gt;&amp;nbsp; [theMovie setFullscreen:YES animated:YES];&lt;/p&gt;&lt;p&gt;如果用户点击切换全屏后,视频会消息但是它并没有停...,在iPhone不会有切换按钮.&lt;/p&gt;&lt;p&gt;在ipad的退出全屏通知中,程序员需要额外处理些问题,比如状态条的隐藏,停止播放等等.&lt;/p&gt;&lt;p&gt;&lt;img width="512" height="384" src="http://pic002.cnblogs.com/images/2011/47234/2011092015535059.jpg" alt="" style="border-style: initial; border-color: initial; border-width: 0px;" data-mce-src="http://pic002.cnblogs.com/images/2011/47234/2011092015535059.jpg" data-mce-style="border-style: initial; border-color: initial; border-width: 0px;"&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&amp;nbsp;&lt;img width="512" height="384" src="http://pic002.cnblogs.com/images/2011/47234/2011092015544046.jpg" alt="" style="border-style: initial; border-color: initial; border-width: 0px;" data-mce-src="http://pic002.cnblogs.com/images/2011/47234/2011092015544046.jpg" data-mce-style="border-style: initial; border-color: initial; border-width: 0px;"&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2182551.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2011/09/20/2182551.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/ioriwellings/archive/2011/08/22/2149123.html</id><title type="text">Multimedia Programming Guide &amp;amp; Audio</title><summary type="text">iOS offers a rich set of tools for working with sound in your application. These tools are arranged into frameworks according to the features they provide, as follows:■ Use theMedia Player framework to play songs, audio books, or audio podcasts froma user’s iPod library.For details, seeMedia Player </summary><published>2011-08-22T03:48:00Z</published><updated>2011-08-22T03:48:00Z</updated><author><name>不及格的程序员-八神</name><uri>http://www.cnblogs.com/ioriwellings/</uri></author><link rel="alternate" href="http://www.cnblogs.com/ioriwellings/archive/2011/08/22/2149123.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/ioriwellings/archive/2011/08/22/2149123.html"/><content type="html">&lt;p&gt;iOS offers a rich set of tools for working with sound in your application. &lt;br /&gt;These tools are arranged into frameworks according to the features they provide, as follows:&lt;/p&gt;&#xD;
&lt;p&gt;■ Use theMedia Player framework to play songs, audio books, or audio podcasts froma user&amp;rsquo;s iPod library.&lt;br /&gt;For details, seeMedia Player Framework Reference, iPod LibraryAccess ProgrammingGuide, and the AddMusic sample code project.&lt;/p&gt;&#xD;
&lt;p&gt;■ Use the AV Foundation framework to play and record audio using a simple Objective-C interface. &lt;br /&gt;&amp;nbsp;For details, see AV Foundation Framework Reference and the avTouch sample code project.&lt;/p&gt;&#xD;
&lt;p&gt;■ Use the Audio Toolbox framework to play audio with synchronization capabilities, access packets of incoming audio, parse audio streams, &lt;br /&gt;&amp;nbsp;convert audio formats, and record audio with access to individual packets. &lt;br /&gt;&amp;nbsp;For details, see Audio Toolbox Framework Reference and the SpeakHere sample code project.&lt;/p&gt;&#xD;
&lt;p&gt;■ Use the Audio Unit framework to connect to and use audio processing plug-ins. For details, see Audio Unit Hosting Guide for iOS.&lt;/p&gt;&#xD;
&lt;p&gt;■ Use the OpenAL framework to provide positional audio playback in games and other applications. &lt;br /&gt;&amp;nbsp;iOS supports OpenAL 1.1. For information on OpenAL, see the OpenAL website, OpenAL FAQ for iPhone OS,and the oalTouch sample code project.&lt;/p&gt;&#xD;
&lt;p&gt;1 Playing Media Items with iPod Library Access&lt;/p&gt;&#xD;
&lt;p&gt;2 Playing UI Sound Effects or Invoking Vibration Using System Sound Services&lt;br /&gt;To play user-interface sound effects (such as button clicks), or to invoke vibration on devices that support it,&lt;br /&gt;use System Sound Services. This compact interface is described in System Sound Services Reference. &lt;br /&gt;You can find sample code in the Audio UI Sounds (SysSound) sample in the iOS Dev Center.&lt;br /&gt;Note:&amp;nbsp; Sounds played with System Sound Services are not subject to configuration using your audio session.&lt;br /&gt;As a result, you cannot keep the behavior of System Sound Services audio in line with other audio behavior&lt;br /&gt;in your application. This is the most important reason to avoid using System Sound Services for any audio&lt;br /&gt;apart from its intended uses.&lt;br /&gt;The AudioServicesPlaySystemSound function lets you very simply play short sound files. The simplicity&lt;br /&gt;carries with it a few restrictions. Your sound files must be:&lt;br /&gt;&amp;nbsp;■ No longer than 30 seconds in duration&lt;br /&gt;&amp;nbsp;■ In linear PCM or IMA4 (IMA/ADPCM) format&lt;br /&gt;&amp;nbsp;■ Packaged in a .caf, .aif, or .wav file&lt;/p&gt;&#xD;
&lt;p&gt;In addition, when you use the AudioServicesPlaySystemSound function:&lt;br /&gt;&amp;nbsp;■ Sounds play at the current system audio volume, with no programmatic volume control available&lt;br /&gt;&amp;nbsp;■ Sounds play immediately&lt;br /&gt;&amp;nbsp;■ Looping and stereo positioning are unavailable&lt;br /&gt;&amp;nbsp;■ Simultaneous playback is unavailable: You can play only one sound at a time&lt;br /&gt;The similar AudioServicesPlayAlertSound function plays a short sound as an alert. If a user has configured&lt;br /&gt;their device to vibrate in Ring Settings, calling this function invokes vibration in addition to playing the sound&lt;br /&gt;file.&lt;/p&gt;&#xD;
&lt;p&gt;3 Playing Sounds Easily with the AVAudioPlayer Class&lt;br /&gt;The AVAudioPlayer class provides a simple Objective-C interface for playing sounds. If your application&lt;br /&gt;does not require stereo positioning or precise synchronization, and if you are not playing audio captured&lt;br /&gt;from a network stream, Apple recommends that you use this class for playback.&lt;br /&gt;Using an audio player you can:&lt;br /&gt;&amp;nbsp;■ Play sounds of any duration&lt;br /&gt;&amp;nbsp;■ Play sounds from files or memory buffers&lt;br /&gt;&amp;nbsp;■ Loop sounds&lt;br /&gt;&amp;nbsp;■ Play multiple sounds simultaneously (although not with precise synchronization)&lt;br /&gt;&amp;nbsp;■ Control relative playback level for each sound you are playing&lt;br /&gt;&amp;nbsp;■ Seek to a particular point in a sound file, which supports application features such as fast forward and rewind&lt;br /&gt;&amp;nbsp;■ Obtain audio power data that you can use for audio level metering&lt;/p&gt;&#xD;
&lt;p&gt;4 Playing Sounds with Control Using Audio Queue Services Audio Queue Services adds playback capabilities beyond those available with the AVAudioPlayer class.&lt;br /&gt;Using Audio Queue Services for playback lets you:&lt;br /&gt;&amp;nbsp;■ Precisely schedule when a sound plays, allowing synchronization&lt;br /&gt;&amp;nbsp;■ Precisely control volume on a buffer-by-buffer basis&lt;br /&gt;&amp;nbsp;■ Play audio that you have captured from a stream using Audio File Stream Services&lt;/p&gt;&#xD;
&lt;p&gt;&lt;br /&gt;5 Playing Sounds with Positioning Using OpenAL&lt;br /&gt;The open-sourced OpenAL audio API, available in iOS in the OpenAL framework, provides an interface&lt;br /&gt;optimized for positioning sounds in a stereo field during playback. Playing, positioning, and moving sounds&lt;br /&gt;works just as it does on other platforms. OpenAL also lets you mix sounds. OpenAL uses the I/O unit for&lt;br /&gt;playback, resulting in the lowest latency.&lt;/p&gt;&#xD;
&lt;p&gt;For all of these reasons, OpenAL is your best choice for playing sounds in game applications on iOS-based&lt;br /&gt;devices. However, OpenAL is also a good choice for general iOS application audio playback needs.&lt;/p&gt;&lt;img src="http://www.cnblogs.com/ioriwellings/aggbug/2149123.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/ioriwellings/archive/2011/08/22/2149123.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry></feed>
