<?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>MAGICALBOY</title>
	<atom:link href="http://magicalboy.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://magicalboy.com</link>
	<description>热爱生活，热爱生命</description>
	<lastBuildDate>Sun, 09 Oct 2016 03:41:28 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.7.7</generator>
	<item>
		<title>2014 莫回首</title>
		<link>https://magicalboy.com/2014-eof/</link>
		<comments>https://magicalboy.com/2014-eof/#comments</comments>
		<pubDate>Wed, 04 Mar 2015 15:26:54 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[生活]]></category>
		<category><![CDATA[程序人生]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43276</guid>
		<description><![CDATA[人生不如意之事八九，有喜有泪。]]></description>
				<content:encoded><![CDATA[<p>人生不如意之事八九，有喜有泪。</p>
<p><img class="wp-image-43288 alignleft" src="/wp-content/uploads/2015/03/20140924111915_cTVsj-300x169.png" alt="goodbye" width="466" height="262" srcset="https://magicalboy.com/wp-content/uploads/2015/03/20140924111915_cTVsj-300x169.png 300w, https://magicalboy.com/wp-content/uploads/2015/03/20140924111915_cTVsj-768x432.png 768w, https://magicalboy.com/wp-content/uploads/2015/03/20140924111915_cTVsj-1024x576.png 1024w, https://magicalboy.com/wp-content/uploads/2015/03/20140924111915_cTVsj.png 1366w" sizes="(max-width: 466px) 100vw, 466px" /></p>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/2014-eof/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iPhone 6 Plus 屏幕宽度问题 375 vs 414</title>
		<link>https://magicalboy.com/iphone-6-plus-screen-width-414-or-375/</link>
		<comments>https://magicalboy.com/iphone-6-plus-screen-width-414-or-375/#respond</comments>
		<pubDate>Mon, 01 Dec 2014 09:49:53 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone 6 Plus]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43261</guid>
		<description><![CDATA[首先看一张比较简单明了的 iPhone 6 与 iPhone 6 Plus 对比图，来自 PaintCode  [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>首先看一张比较简单明了的 iPhone 6 与 iPhone 6 Plus 对比图，来自 PaintCode 的《<a href="http://www.paintcodeapp.com/news/ultimate-guide-to-iphone-resolutions" target="_blank">The Ultimate Guide To iPhone Resolutions</a>》：</p>
<p><a href="http://magicalboy.com/wp-content/uploads/2014/12/iPhone_6_and_6P_screen_size.png"><img class="aligncenter size-medium wp-image-43264" src="http://magicalboy.com/wp-content/uploads/2014/12/iPhone_6_and_6P_screen_size-276x300.png" alt="iPhone_6_and_6P_screen_size" width="276" height="300" srcset="https://magicalboy.com/wp-content/uploads/2014/12/iPhone_6_and_6P_screen_size-276x300.png 276w, https://magicalboy.com/wp-content/uploads/2014/12/iPhone_6_and_6P_screen_size.png 525w" sizes="(max-width: 276px) 100vw, 276px" /></a><br />
<span id="more-43261"></span></p>
<p>&nbsp;</p>
<p>iPhone 6 Plus 要比 iPhone 6 的屏幕宽 39 Point，分辨率更是高出不少，因为 iPhone 6 Plus 是按 3x 来渲染的，也就是说 1point=3pixes。用以下代码测试：</p>
<pre class="brush: cpp; gutter: true">UIScreen *mainScreen = [UIScreen mainScreen];
    
    // 需要注意 coordinateSpace 属性 iOS 8 以上才支持
    NSLog(@&quot;Screen bounds: %@, Screen resolution: %@, scale: %f, nativeScale: %f&quot;,
          NSStringFromCGRect(mainScreen.bounds), mainScreen.coordinateSpace, mainScreen.scale, mainScreen.nativeScale);</pre>
<p>用 iPhone 6 Plus 测试输出结果为：</p>
<pre class="brush: bash; gutter: true">Screen bounds: {{0, 0}, {375, 667}}, Screen resolution: &lt;UIScreen: 0x14f601fe0; bounds = {{0, 0}, {375, 667}}; mode = &lt;UIScreenMode: 0x1780321c0; size = 1125.000000 x 2001.000000&gt;&gt;, scale: 3.000000, nativeScale: 2.880000

</pre>
<h3>为什么宽度只是375而不是414呢</h3>
<p>从上面的图片看知道它们有一个所谓的&#8221;Display Zoom&#8221;缩放模式，但不知道如何启用此模式。最初以为是在设置-&gt;通用-&gt;辅助功能里可以调整，只有一个缩放和更大字体之类的比较接近，但都不是。今天在显示与亮度中终于找到答案了，如下图：</p>

<a href='https://magicalboy.com/iphone-6-plus-screen-width-414-or-375/img_0080/'><img width="150" height="150" src="https://magicalboy.com/wp-content/uploads/2014/12/IMG_0080-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://magicalboy.com/iphone-6-plus-screen-width-414-or-375/img_0079/'><img width="150" height="150" src="https://magicalboy.com/wp-content/uploads/2014/12/IMG_0079-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" /></a>

<p>&nbsp;</p>
<p>设置为标准，再运行结果就正常啦：</p>
<pre class="brush: bash; gutter: true">Screen bounds: {{0, 0}, {414, 736}}, Screen resolution: &lt;UIScreen: 0x146603a60; bounds = {{0, 0}, {414, 736}}; mode = &lt;UIScreenMode: 0x178032da0; size = 1242.000000 x 2208.000000&gt;&gt;, scale: 3.000000, nativeScale: 2.608696</pre>
<p>从输出数据中可以看出，即使 6 Plus 缩放到375模式，它加载的依然是三倍的图片资源。另外一点，标准模式下 6 Plus 才支持横屏模式，包括主屏幕。</p>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/iphone-6-plus-screen-width-414-or-375/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple WatchKit 下载试玩</title>
		<link>https://magicalboy.com/apple-watchkit-hello-world/</link>
		<comments>https://magicalboy.com/apple-watchkit-hello-world/#respond</comments>
		<pubDate>Wed, 19 Nov 2014 06:50:11 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[互聯網]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Watch]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43248</guid>
		<description><![CDATA[随着 Xcode 6.2 Beta 的更新发布，苹果公司开放了 WatchKit，赶紧尝鲜下载玩玩。 创建 W [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>随着 Xcode 6.2 Beta 的更新发布，苹果公司开放了 <a href="https://developer.apple.com/watchkit/" target="_blank">WatchKit</a>，赶紧尝鲜下载玩玩。</p>
<h3>创建 WatchKit Apps</h3>
<p>WatchKit 提供三种条件来扩展 iPhone app：WatchKit Apps、Glances 以及 Actionable Notifications。这些类型都必须依赖于已经存在的 iOS 应用而存在。所以在创建新 WatchKit 应用的时候在 Xcode 的创建新项目中是找不到的，而是作为已经存在的 iOS 项目的新 Target 来创建。</p>
<p>
<a href='https://magicalboy.com/apple-watchkit-hello-world/apple_watch_apps/'><img width="150" height="150" src="https://magicalboy.com/wp-content/uploads/2014/11/Apple_Watch_apps-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://magicalboy.com/apple-watchkit-hello-world/watchkit_target/'><img width="150" height="150" src="https://magicalboy.com/wp-content/uploads/2014/11/watchkit_target-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<br />
<span id="more-43248"></span></p>
<p>创建完成之后整个的项目结构是这样的：<a href="http://magicalboy.com/wp-content/uploads/2014/11/watchkit_xcode.png"><img class="aligncenter wp-image-43250 size-medium" src="http://magicalboy.com/wp-content/uploads/2014/11/watchkit_xcode-300x187.png" alt="watchkit_xcode" width="300" height="187" srcset="https://magicalboy.com/wp-content/uploads/2014/11/watchkit_xcode-300x187.png 300w, https://magicalboy.com/wp-content/uploads/2014/11/watchkit_xcode-1024x639.png 1024w, https://magicalboy.com/wp-content/uploads/2014/11/watchkit_xcode.png 1398w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<h3>Apple Watch模拟器</h3>
<p>Apple Watch 显示屏是方形的，有两种尺寸：38 mm 和 42mm，对应的分辨率为：312 × 390、272 x 340。可以在 iOS Simulator &gt; Hardware &gt; External Displays 中找到打开。</p>

<a href='https://magicalboy.com/apple-watchkit-hello-world/apple_watch_42mm_helloworld/'><img width="150" height="150" src="https://magicalboy.com/wp-content/uploads/2014/11/Apple_Watch_42mm_helloworld-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://magicalboy.com/apple-watchkit-hello-world/apple_watch_38mm_helloworld/'><img width="150" height="150" src="https://magicalboy.com/wp-content/uploads/2014/11/Apple_Watch_38mm_helloworld-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" /></a>

<h3>应用架构</h3>
<p>简单体验了一下，Apple Watch 使用的是  WatchKit 框架，WKInterfaceController 相当于 UIKit 的 UIViewController，代表一个屏幕上显示的视图。UI元素也和 iOS 的相似，WKInterfaceGroup 用来定义布局，水平还是垂直，还可以定义边距，背景颜色或图片。WKInterfaceTable 可以理解为 UITableView 精简版，用来展示动态内容。WKInterfaceMap 更是精简，只是不可交互的快照，点击会打开 Maps App。整体运行框架见下图，由图此可见，Apple Watch 应用不能独立存在，必须和  iOS App 相互作用运行。</p>

<a href='https://magicalboy.com/apple-watchkit-hello-world/iphone_and_watch1/'><img width="150" height="150" src="https://magicalboy.com/wp-content/uploads/2014/11/iPhone_and_Watch1-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" /></a>
<a href='https://magicalboy.com/apple-watchkit-hello-world/watchkit_arch/'><img width="150" height="150" src="https://magicalboy.com/wp-content/uploads/2014/11/WatchKit_Arch-150x150.png" class="attachment-thumbnail size-thumbnail" alt="" /></a>

<h3>链接</h3>
<ul>
<li><a href="https://developer.apple.com/xcode/downloads/" target="_blank">Xcode &#8211; Downloads &#8211; Apple Developer</a></li>
<li><a href="https://developer.apple.com/watchkit/" target="_blank">WatchKit &#8211; Apple Developer</a></li>
<li><a href="http://devstreaming.apple.com/videos/watch/Getting_Started_With_Watchkit/0720/prog_index.m3u8" target="_blank">View the Getting Started with WatchKit video</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/apple-watchkit-hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://devstreaming.apple.com/videos/watch/Getting_Started_With_Watchkit/0720/prog_index.m3u8" length="0" type="application/vnd.apple.pages" />
		</item>
		<item>
		<title>从 Baidu 免费下载高质量的 MP3 音乐</title>
		<link>https://magicalboy.com/download-mp3-music-from-baidu-for-free/</link>
		<comments>https://magicalboy.com/download-mp3-music-from-baidu-for-free/#respond</comments>
		<pubDate>Wed, 19 Nov 2014 01:42:02 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[互聯網]]></category>
		<category><![CDATA[MP3]]></category>
		<category><![CDATA[音乐]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43243</guid>
		<description><![CDATA[百度音乐（http://music.baidu.com/）大家一定不会陌生，百度音乐盒（http://play [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>百度音乐（http://music.baidu.com/）大家一定不会陌生，百度音乐盒（http://play.baidu.com/）可以在线听音乐，可惜需要 Adobe Flash 支持。而且在线听的音乐质量比不上下载回来听好。如果需要下载 mp3 音乐，Baidu 默认只对标准品质（128 kbps）提供免费下载，下载高质量的 mp3 音乐会提示开通它家的 VIP。在这里我想介绍如何绕过这个限制来下载更高品质的 mp3 音乐。<br />
<span id="more-43243"></span></p>
<p><img class="aligncenter wp-image-43245 size-full" src="http://magicalboy.com/wp-content/uploads/2014/11/baidu_mp3_download.png" alt="baidu_mp3_download" width="785" height="337" srcset="https://magicalboy.com/wp-content/uploads/2014/11/baidu_mp3_download.png 785w, https://magicalboy.com/wp-content/uploads/2014/11/baidu_mp3_download-300x128.png 300w" sizes="(max-width: 785px) 100vw, 785px" /></p>
<h3>方法</h3>
<p>方法其实很简单，先将 Adobe Flash 插件禁用，从音乐盒里面进行下载，会提示从云音乐下载，点击立即去下载，会跳转到 <strong>http://yinyueyun.baidu.com/?download=&amp;pst=naga&amp;fr=</strong>。如截图，可以选择除无损品质之外的 MP3 文件下载。<br />
<img class="aligncenter wp-image-43246 size-full" src="http://magicalboy.com/wp-content/uploads/2014/11/mp3_download_selection.png" alt="mp3_download_selection" width="388" height="251" srcset="https://magicalboy.com/wp-content/uploads/2014/11/mp3_download_selection.png 388w, https://magicalboy.com/wp-content/uploads/2014/11/mp3_download_selection-300x194.png 300w" sizes="(max-width: 388px) 100vw, 388px" /></p>
<p>不知道这么做会不会有版权的问题</p>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/download-mp3-music-from-baidu-for-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TestFlight 笔记</title>
		<link>https://magicalboy.com/testflight/</link>
		<comments>https://magicalboy.com/testflight/#respond</comments>
		<pubDate>Wed, 15 Oct 2014 08:34:51 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[App Store]]></category>
		<category><![CDATA[iTunes Connect]]></category>
		<category><![CDATA[TestFlight]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43230</guid>
		<description><![CDATA[这里要说的不是 testflightapp.com，而是被苹果收购后，在 iTunes Connect 上面的 [&#8230;]]]></description>
				<content:encoded><![CDATA[<div>这里要说的不是 testflightapp.com，而是被苹果收购后，在 iTunes Connect 上面的那个 TestFlight。并且 testflightapp.com 某此功能都被停掉了，比如 Team 的 SDK 已经不能再申请使用。</div>
<p>&nbsp;</p>
<h3>TestFlight 是什么</h3>
<div></div>
<div>使用 TestFlight Beta Testing，将预发布版的 app 分发给测试者来收集反馈，做好发布到 App Store 的准备。</div>
<div>TestFlight Beta Testing 是可选的，还是可以直接提交 app 给 App Store 审核。</div>
<div>TestFlight 是免费的，容易使用，发布到 App Store 之前的改善工具。</div>
<div>TestFlight 目前仅支持 iOS 应用，一个开发者用户同时能够对 10 个 apps 启用 TestFlight Beta Testing。</div>
<div></div>
<p><span id="more-43230"></span></p>
<h3>在 iTunes Connect 设置预发布版本应用测试的步骤：</h3>
<ul>
<li>如果是新应用则需要先创建。</li>
<li>生成新的 App Store Distribution profile。</li>
<li>上传 app 的二进制文件。</li>
<li>增加应用描述和针对此版本的测试内容。</li>
<li>发布应用给内部测试者。</li>
<li>从测试者中获取反馈。</li>
<li>处理这些反馈，提交新版本。</li>
<li>完成测试，提交应用到审核，或关闭测试。</li>
</ul>
<div></div>
<h3>下面说说以上这些步骤操作的实践过程遇到的问题：</h3>
<ol>
<li>直接使用发布证书打包，按平时提交 App Store 的步骤上传要发布的包即可。</li>
<li>给应用分配内部测试者的时候，必须是 iTunes Connect 用户，而且必须将 <span class="th--controls"><span class="testing-controls"><span class="control-text ng-binding">Internal Tester</span> </span></span>开头打开才能在 Prerelease-&gt;Internal Tester 的 Testers 列表中看到。</li>
<li>必须至少有一个 Tester，打开 <span class="th--controls"><span class="testing-controls"><span class="control-text ng-binding">TestFlight Beta Testing</span> <span class="hasPopOver"> 开关才会有效。</span></span></span></li>
<li><span class="th--controls"><span class="testing-controls"><span class="hasPopOver">邀请会通过邮件发送，必须在 iOS 设备上操作，会自动打开 TestFlight 来下载安装测试的 app。</span></span></span></li>
<li><span class="th--controls"><span class="th--controls"><span class="testing-controls"><span class="hasPopOver">Tester 的状态（&#8221;Status&#8221;）没有像文档中所说的当用户下载了 app，状态会</span></span></span></span>变成 &#8220;Testing&#8221;。原文：&#8221;When they download the app, their status changes to Testing&#8221;。</li>
<li>在 TestFlight-&gt;Testers 的列表中，测试者的 Installed Devices 有时会变成空。</li>
<li>从测试用户获取反馈这个也有问题，测试过程中崩溃的信息没有能够反馈到指定的 Feedback Email。</li>
</ol>
<div></div>
<p>除了 Internal Testers 之外，还有一个 External Testers。<strong>像普通应用一样需要先提交审核，通过后才会发布测试</strong>。<del datetime="2014-10-27T01:15:49+00:00">可惜目前还未开放，开放之后</del>最多可以邀请1000个非开发组成员进行测试，值得期待的一个功能。</p>
<p>总之 TestFlight 被苹果收购之后，随着新版的 iTunes Connect 一起推出，目前应该还在进一步开发整合中，多少会有些小问题，不久应该会有更新。不过，TestFlight 的类似功能 Google Play Developer Console 早就已经实现了哦。</p>
<div></div>
<div>最后需要注意的是 TestFlight is iOS 8 only!</div>
<div></div>
<h3>参考连接：</h3>
<p><a href="https://developer.apple.com/app-store/Testflight/" target="_blank" shape="rect">https://developer.apple.com/app-store/Testflight/</a></p>
<p><a href="https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/BetaTestingTheApp.html#//apple_ref/doc/uid/TP40011225-CH35-SW2" target="_blank" shape="rect">https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/BetaTestingTheApp.html#//apple_ref/doc/uid/TP40011225-CH35-SW2</a></p>
<div></div>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/testflight/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>新版 iTunes Connect 提交 App 遇到的问题</title>
		<link>https://magicalboy.com/new-itunes-connect/</link>
		<comments>https://magicalboy.com/new-itunes-connect/#comments</comments>
		<pubDate>Tue, 09 Sep 2014 07:33:18 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[互聯網]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iTunes Connect]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43220</guid>
		<description><![CDATA[随着 Apple 将其 OS X Yosemite 更新到扁平化风格后，iTunes Connect 终于也被 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>随着 Apple 将其 OS X Yosemite 更新到扁平化风格后，<a href="https://itunesconnect.apple.com" target="_blank">iTunes Connect</a> 终于也被拍扁了。除了 UI 扁平化外，也改进了用户体验，能够快速切换到其它功能，并且新增了 Prerelease 项。</p>
<h3>遇到的问题</h3>
<p>今天在为 app 发布新版本的时候发现，其流程和以往有所不同。增加新版本在一个页面上完成，之后就是使用工具提交要发布app的二进制包。这里有一个小的更新，可以选择账户里面所有的app进行上传。问题是上传完发布包后，点 &#8220;Submit for Review&#8221; 会有错误提示：&#8221;You must choose a build.&#8221;。<br />
同时又发现没有地方可以选择一个编译版本来发布，是不是令人很郁闷啊。</p>
<h3>问题原因</h3>
<p>原来，我们提交上传的包被移到 Prerelease 下了。而且这里也有原因说明：&#8221;After builds are uploaded thye will go through a processing status before they can be used.&#8221;，意思是上传的编译包在能够使用之前必须经过处理状态。<br />
<span id="more-43220"></span></p>
<div id="attachment_43221" style="width: 888px" class="wp-caption alignleft"><a href="http://magicalboy.com/wp-content/uploads/2014/09/new_itunes_connect_prerelease.png"><img class="size-full wp-image-43221" src="http://magicalboy.com/wp-content/uploads/2014/09/屏幕快照-2014-09-09-下午3.13.19.png" alt="Prerelease" width="878" height="456" srcset="https://magicalboy.com/wp-content/uploads/2014/09/屏幕快照-2014-09-09-下午3.13.19.png 878w, https://magicalboy.com/wp-content/uploads/2014/09/屏幕快照-2014-09-09-下午3.13.19-300x155.png 300w" sizes="(max-width: 878px) 100vw, 878px" /></a><p class="wp-caption-text">the new iTunes Connect Prerelease tab</p></div>
<p>一旦状态改变会收到邮件通知和问题警告具体说明。</p>
<h3>解决方法</h3>
<p>等，没错，就是等处理状态完成，大概十来分钟左右。有在快下班才发布版本习惯的同学要注意咯。然后就可以在 Build 栏下点击加号来选择版本，点击 &#8220;Submit for Review&#8221; 来进入最后的发布页面，Prepare for Submission。Advertising Identifier (IDFA) 和版权等选项在这里选择。最后点提交来完成发布。</p>
<p>新版本的 iTunes Connect 还可以让用户在新版 app 等待审核的时候修改编辑所有信息，方便开发者。</p>
<h3>2014年09月16日更新</h3>
<p>更详细的流程请查看：<a href="https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Chapters/About.html" title="iTunes Connect Developer Guide" target="_blank">iTunes Connect Developer Guide</a></p>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/new-itunes-connect/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>开始使用 Auto Layout</title>
		<link>https://magicalboy.com/start-using-auto-layout/</link>
		<comments>https://magicalboy.com/start-using-auto-layout/#comments</comments>
		<pubDate>Fri, 05 Sep 2014 03:19:57 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iOS]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43215</guid>
		<description><![CDATA[首先看看苹果官网提供的 iOS 设备版本使用统计情况。 苹果应用程序商店（App Store）7天内数据来测量 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>首先看看苹果官网提供的 iOS 设备版本使用统计情况。</p>
<div id="attachment_43216" style="width: 215px" class="wp-caption aligncenter"><a href="http://magicalboy.com/wp-content/uploads/2014/09/chart-8-10-14.png"><img class="wp-image-43216 size-full" src="http://magicalboy.com/wp-content/uploads/2014/09/chart-8-10-14.png" alt="2014年8月24日期间" width="205" height="220" /></a><p class="wp-caption-text">91% 的设备正在使用 iOS 7</p></div>
<p>苹果应用程序商店（App Store）7天内数据来测量结果：根据2014年8月24日期间测量的数据显示，91% 的设备正在使用 iOS 7.</p>
<p>Apple 将于9月9日发布新的 iPhone 设备和新的 iOS 8。由于屏幕分辨率多样化，不能再像以前使用绝对布局。苹果的自动布局技术始于 iOS 6， iOS 7 之后也有所改进。从这个统计数据中看到，iOS 6 只占不到 1%，大家可以放心地将项目最低支持到 iOS 6 了。对于开发者来说，幸福是不是来得太突然了啊。</p>
<p>最新 iOS 设备版本使用统计情况请查看苹果官网：<a title="App Store Distribution - Support " href="https://developer.apple.com/support/appstore/" target="_blank">App Store Distribution &#8211; Support &#8211; Apple Developer</a></p>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/start-using-auto-layout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Xcode 5.0 下载，安装，使用</title>
		<link>https://magicalboy.com/xcode-5-0/</link>
		<comments>https://magicalboy.com/xcode-5-0/#comments</comments>
		<pubDate>Mon, 30 Sep 2013 04:02:21 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhone5s]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[Xcode5]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43200</guid>
		<description><![CDATA[Xcode 5.0 是一个大版本，改变自然也多，支持我的 iPhone5s 和 iOS7.0 开发必须的工具。 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Xcode 5.0 是一个大版本，改变自然也多，支持我的 iPhone5s 和 iOS7.0 开发必须的工具。另外也支持 64bit app 开发，还有支持 OS X Mavericks 开发，TDD，Continuous Integration，自动化配置等。改进方面有界面 Flat 化，可视化调试，静态分析，代码管理等。 具体请见 <a href="https://developer.apple.com/technologies/tools/whats-new.html" target="_blank">What’s New in Xcode 5</a>。</p>
<p><span id="more-43200"></span></p>
<h3>Xcode 5.0 下载</h3>
<p>Xcode 5.0 正式版发布于2013年9月18日（美国当地时间），可以从Mac Store上下载安装，免费。前提条件上是，系统版本必须 Mountain Lion 10.8.5 及以上，否则：<br />
<img src="http://magicalboy.com/wp-content/uploads/2013/09/Xcode5.0_OSX10.8.5_Error.png" alt="Xcode5.0_OSX10.8.5_Error" width="749" height="227" class="alignleft size-full wp-image-43202" srcset="https://magicalboy.com/wp-content/uploads/2013/09/Xcode5.0_OSX10.8.5_Error.png 749w, https://magicalboy.com/wp-content/uploads/2013/09/Xcode5.0_OSX10.8.5_Error-300x90.png 300w" sizes="(max-width: 749px) 100vw, 749px" /></p>
<p>
如果想保留之前旧版本的Xcode，比如Xcode4.6，建议下载DMG。下载地址：https://developer.apple.com/downloads/index.action#。需要登录。<br />
<img class="alignleft size-full wp-image-43201" alt="Xcode5.0_dmg" src="http://magicalboy.com/wp-content/uploads/2013/09/Xcode5.0_dmg.png" width="851" height="298" srcset="https://magicalboy.com/wp-content/uploads/2013/09/Xcode5.0_dmg.png 851w, https://magicalboy.com/wp-content/uploads/2013/09/Xcode5.0_dmg-300x105.png 300w" sizes="(max-width: 851px) 100vw, 851px" />
</p>
<h3>Xcode 5.0 安装</h3>
<p>下载好DMG安装包后，打开会发现 Xcode 以 app 的形式发布，直接复制到本地磁盘即可，比如 ~/Development 下，与之前版本的 Xcode 路径不同即可。</p>
<h3>Xcode 5.0 使用</h3>
<p>这里说一下初步使用情况。</p>
<ol>
<li>Code Signing 增加了 Provisioning Profile，真机调试的时候要注意先选择对应的Profile，再选选 Identify，否则会找不到。</li>
<li>旧项目升级问题，如果项目代码用到 SVN 1.7 之前版本来管理，会提示升级到 1.7，升级后，旧的Xcode就识别不了啦。</li>
<li>与旧项目兼容问题，主要是指项目中的 XIB 文件，在 Xcode 5.0 中会自动升级，只要你打开过。升级后的 XIB 在旧的 Xcode 打不开，重要的是有些 XIB 升级后，布局乱了，主要是坐标混乱。。</li>
<li>
不支持 4.3 模拟器，项目Target却允许支持到 4.3，估计还支持真机调试（未测试）。</li>
</ol>
<p>技术升级太快，一下子就 iOS 7, Xcode 5 了，得勇于面对新事物，快速学习新的知识才不被落后啊，一起努力吧，求交流。</p>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/xcode-5-0/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>密码保护：打波路线</title>
		<link>https://magicalboy.com/ball/</link>
		<comments>https://magicalboy.com/ball/#respond</comments>
		<pubDate>Tue, 27 Aug 2013 01:52:35 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43195</guid>
		<description><![CDATA[无法提供摘要。这是一篇受保护的文章。]]></description>
				<content:encoded><![CDATA[<form action="https://magicalboy.com/wp-login.php?action=postpass" class="post-password-form" method="post">
<p>这是一篇受密码保护的文章，您需要提供访问密码：</p>
<p><label for="pwbox-43195">密码： <input name="post_password" id="pwbox-43195" type="password" size="20" /></label> <input type="submit" name="Submit" value="提交" /></p>
</form>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/ball/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iOS 平铺图像</title>
		<link>https://magicalboy.com/ios-pattern-image/</link>
		<comments>https://magicalboy.com/ios-pattern-image/#respond</comments>
		<pubDate>Mon, 05 Aug 2013 06:38:40 +0000</pubDate>
		<dc:creator><![CDATA[donly]]></dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iOS]]></category>

		<guid isPermaLink="false">http://magicalboy.com/?p=43189</guid>
		<description><![CDATA[iOS SDK 里面有没有类似于 HTML 中的 background-repeat 属性，使图像重复平铺呢？ [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>iOS SDK 里面有没有类似于 HTML 中的 background-repeat 属性，使图像重复平铺呢？</p>
<p>我大苹果当然有啦，那就是：</p>
<blockquote><p>+ (UIColor *)colorWithPatternImage:(UIImage *)image</p></blockquote>
<p>使用也很简单：</p>
<pre class="brush: cpp; gutter: true; first-line: 1; highlight: []; html-script: false">
- (void)viewDidLoad {
  [super viewDidLoad];
  UIImage *patternImage = [UIImage imageNamed:@&quot;pattern.png&quot;];
  self.view.backgroundColor = [UIColor colorWithPatternImage:patternImage];
}</pre>
<p>平铺效果：<span id="more-43189"></span><br />
<img src="http://www.bobmccune.com/wp-content/uploads/2011/03/pattern_to_view.png" alt="" /></p>
<p>平铺可以减少图片资源所占用的app空间，重复利用资源。</p>
<p>原文：<a href="http://www.bobmccune.com/2011/03/08/ios-101-pattern-images/" target="_blank">《iOS 101: Pattern Images》</a></p>
]]></content:encoded>
			<wfw:commentRss>https://magicalboy.com/ios-pattern-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
