<?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>::CODER:: 誠智數位 &#187; Category &#187; 里里扣扣</title>
	<atom:link href="https://blog.coder.com.tw/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.coder.com.tw</link>
	<description>一群阿宅的工作、生活筆記</description>
	<lastBuildDate>Sat, 24 Oct 2020 04:55:21 +0000</lastBuildDate>
	<language>zh-TW</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.7.41</generator>
	<item>
		<title>ios7中status bar隱藏,遇到UIImagePicker顯示的問題處理</title>
		<link>https://blog.coder.com.tw/uncategorized/ios7%e4%b8%adstatus-bar%e9%9a%b1%e8%97%8f%e9%81%87%e5%88%b0uiimagepicker%e5%b0%b1%e9%a1%af%e7%a4%ba%e7%9a%84%e5%95%8f%e9%a1%8c%e8%99%95%e7%90%86/</link>
		<comments>https://blog.coder.com.tw/uncategorized/ios7%e4%b8%adstatus-bar%e9%9a%b1%e8%97%8f%e9%81%87%e5%88%b0uiimagepicker%e5%b0%b1%e9%a1%af%e7%a4%ba%e7%9a%84%e5%95%8f%e9%a1%8c%e8%99%95%e7%90%86/#comments</comments>
		<pubDate>Tue, 04 Mar 2014 10:36:36 +0000</pubDate>
		<dc:creator><![CDATA[海]]></dc:creator>
				<category><![CDATA[里里扣扣]]></category>

		<guid isPermaLink="false">http://www.coder.com.tw/blog/?p=158</guid>
		<description><![CDATA[ios7後status bar的隱藏功能做法跟之前有些不同 info.plist ,除了Status bar ... <a class="more" href="https://blog.coder.com.tw/uncategorized/ios7%e4%b8%adstatus-bar%e9%9a%b1%e8%97%8f%e9%81%87%e5%88%b0uiimagepicker%e5%b0%b1%e9%a1%af%e7%a4%ba%e7%9a%84%e5%95%8f%e9%a1%8c%e8%99%95%e7%90%86/">Continue reading &#8594;</a>]]></description>
				<content:encoded><![CDATA[<p>ios7後status bar的隱藏功能做法跟之前有些不同</p>
<p>info.plist ,除了Status bar is initially hidden 設定值為 YES之外</p>
<p>需另外新增 View controller-based status bar appearance 欄位，並設定值為 NO</p>
<p><a href="http://www.coder.com.tw/blog/wp-content/uploads/2014/03/EGZTv.png"><img class="alignnone size-full wp-image-159" alt="EGZTv" src="http://www.coder.com.tw/blog/wp-content/uploads/2014/03/EGZTv.png" width="399" height="34" /></a></p>
<p>還要改寫controller中的prefersStatusBarHidden</p>
<pre class="brush: objc; title: ; notranslate">
 - (BOOL)prefersStatusBarHidden
 {
 return YES;
 }
 </pre>
<p>照著以上這樣做,就能隱藏了</p>
<p>但我最近遇到的問題是只要在APP中使用UIImagePicker之類的功能</p>
<p>(就算是透過UIWebView的檔案上傳鈕開啟也一樣)</p>
<p>已經隱藏的StatusBar就會不問一下自己跑出來。</p>
<p>Google了之後找到了解答</p>
<p>在AppDelegate中加入下列程式碼即可</p>
<pre class="brush: objc; title: ; notranslate">
- (void)application:(UIApplication *)application didChangeStatusBarFrame:(CGRect)oldStatusBarFrame
{
[application setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
}
 </pre>
]]></content:encoded>
			<wfw:commentRss>https://blog.coder.com.tw/uncategorized/ios7%e4%b8%adstatus-bar%e9%9a%b1%e8%97%8f%e9%81%87%e5%88%b0uiimagepicker%e5%b0%b1%e9%a1%af%e7%a4%ba%e7%9a%84%e5%95%8f%e9%a1%8c%e8%99%95%e7%90%86/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
