<?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>Nffish&#039;s Blog &#187; iphone</title>
	<atom:link href="http://nffish.com/archives/category/iphone/feed" rel="self" type="application/rss+xml" />
	<link>http://nffish.com</link>
	<description>好记性不如烂笔头</description>
	<lastBuildDate>Sat, 17 Jul 2010 05:37:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[iPhone开发]完成输入后关闭键盘的方法</title>
		<link>http://nffish.com/archives/450</link>
		<comments>http://nffish.com/archives/450#comments</comments>
		<pubDate>Tue, 18 May 2010 03:16:46 +0000</pubDate>
		<dc:creator>Nffish</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[iphone开发]]></category>
		<category><![CDATA[关闭键盘]]></category>

		<guid isPermaLink="false">http://nffish.com/?p=450</guid>
		<description><![CDATA[iPhone的键盘是基于软件，而不是物理键盘的，因此需要一些额外的步骤来确保用户在完成输入后关闭键盘。
1.通过点击Done按钮关闭键盘
当用户按下Done按钮式，将触发“did end on exit”事件，我们可以在此时间中加入关闭键盘的操作。
在头文件中加入 
-(IBAction)textFieldDoneEditing:(id)sender;   
在实现文件中添加 
-(IBAction)textFieldDoneEditing:(id)sender
{
[sender resignFirstResponder];
} 
在Interface Builder中按command+2 选择文本字段的Did End on Exit事件，拖动到File&#8217;s Owner图标，并选择TextFieldDoneEditing。保存，完成。   
2.通过触摸背景关闭键盘
这个方法是添加一个不可见的按钮，来激活触摸背景的事件。
在头文件中加入  
  -(IBAction)backgroundClick:(id)sender;     
在实现文件中添加   
-(IBAction)backgroundClick:(id)sender {
[nameField resignFirstResponder];
[numberField resignFirstResponder];
}    
  在Interface Builder 的库拖一个Round Rect Button到View中。拉伸按钮，填充整个视图屏幕。按command+1，将按钮类型改为Custom。按command+2，从Touch Up Inside事件拖到File&#8217;s Owner图标并选择backgroundClick:。保存xib文件，完工。
随机日志我的博客Firefox搜索插件明天要做第一个项目实战杭州，我回来了IE8还是不尽人意?终结者外传 &#8211; 第一季把数字转换成36进制全球各大城市油价Speedtest网速测试青檬流行歌曲榜Ubuntu桌面操作快捷键]]></description>
			<content:encoded><![CDATA[<p>iPhone的键盘是基于软件，而不是物理键盘的，因此需要一些额外的步骤来确保用户在完成输入后关闭键盘。<br />
<strong>1.通过点击Done按钮关闭键盘</strong><br />
当用户按下Done按钮式，将触发“did end on exit”事件，我们可以在此时间中加入关闭键盘的操作。<br />
在头文件中加入 </p>
<p>-(IBAction)textFieldDoneEditing:(id)sender;   </p>
<p>在实现文件中添加 </p>
<p>-(IBAction)textFieldDoneEditing:(id)sender<br />
{<br />
[sender resignFirstResponder];<br />
} </p>
<p>在Interface Builder中按command+2 选择文本字段的Did End on Exit事件，拖动到File&#8217;s Owner图标，并选择TextFieldDoneEditing。保存，完成。   </p>
<p><strong>2.通过触摸背景关闭键盘</strong><br />
这个方法是添加一个不可见的按钮，来激活触摸背景的事件。<br />
在头文件中加入  </p>
<p>  -(IBAction)backgroundClick:(id)sender;     </p>
<p>在实现文件中添加   </p>
<p>-(IBAction)backgroundClick:(id)sender {<br />
[nameField resignFirstResponder];<br />
[numberField resignFirstResponder];<br />
}    </p>
<p>  在Interface Builder 的库拖一个Round Rect Button到View中。拉伸按钮，填充整个视图屏幕。按command+1，将按钮类型改为Custom。按command+2，从Touch Up Inside事件拖到File&#8217;s Owner图标并选择backgroundClick:。保存xib文件，完工。</p>
<div  class="related_post_title">随机日志</div><ul class="related_post"><li><a href="http://nffish.com/archives/438" title="It&#8217;s time for a change">It&#8217;s time for a change</a></li><li><a href="http://nffish.com/archives/78" title="Test">Test</a></li><li><a href="http://nffish.com/archives/89" title="汇通快递真垃圾">汇通快递真垃圾</a></li><li><a href="http://nffish.com/archives/54" title="抢注Windows live ID @live.cn">抢注Windows live ID @live.cn</a></li><li><a href="http://nffish.com/archives/167" title="赠送Yupoo大众VIP激活码3枚">赠送Yupoo大众VIP激活码3枚</a></li><li><a href="http://nffish.com/archives/46" title="Blog Action Day，让我们一起行动">Blog Action Day，让我们一起行动</a></li><li><a href="http://nffish.com/archives/411" title="iphone摔坏屏幕">iphone摔坏屏幕</a></li><li><a href="http://nffish.com/archives/313" title="Xmarks正常使用hosts大法">Xmarks正常使用hosts大法</a></li><li><a href="http://nffish.com/archives/85" title="QQ2008贺岁版好&ldquo;智能&rdquo;">QQ2008贺岁版好&ldquo;智能&rdquo;</a></li><li><a href="http://nffish.com/archives/331" title="Twitter最新hosts IP IPv6反向代理">Twitter最新hosts IP IPv6反向代理</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nffish.com/archives/450/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iphone摔坏屏幕</title>
		<link>http://nffish.com/archives/411</link>
		<comments>http://nffish.com/archives/411#comments</comments>
		<pubDate>Fri, 26 Mar 2010 03:06:41 +0000</pubDate>
		<dc:creator>Nffish</dc:creator>
				<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://nffish.com/?p=411</guid>
		<description><![CDATA[iphone掉地上白屏了，不再相信淘宝上那个奸商了，所以送去维修点了。经检测屏幕坏了，需要更换，而且还进过水。我自己使用的时候没有进水过，所以怀疑自己买的是翻新机了。没办法只能先修好用了，以后不再淘宝上买此类产品了。
暴光这家卖翻新机双皇冠的JS，ID:dorally http://shop33034828.taobao.com/ ， 希望其他人不要上当了。
国内信得过的还是苹果家园   ，macbook就是在苹果家园买的，有发票，国内可以保修。下次买手机也去machome了。
相关日志iPhone应用设计趋势iPhone的Power键与Home键妙用]]></description>
			<content:encoded><![CDATA[<p>iphone掉地上白屏了，不再相信淘宝上那个奸商了，所以送去维修点了。经检测屏幕坏了，需要更换，而且还进过水。我自己使用的时候没有进水过，所以怀疑自己买的是翻新机了。没办法只能先修好用了，以后不再淘宝上买此类产品了。</p>
<p>暴光这家卖翻新机双皇冠的JS，ID:dorally http://shop33034828.taobao.com/ ， 希望其他人不要上当了。</p>
<p>国内信得过的还是<a href="http://www.machome.com.cn">苹果家园</a>   ，macbook就是在苹果家园买的，有发票，国内可以保修。下次买手机也去machome了。</p>
<div  class="related_post_title">相关日志</div><ul class="related_post"><li><a href="http://nffish.com/archives/404" title="iPhone应用设计趋势">iPhone应用设计趋势</a></li><li><a href="http://nffish.com/archives/396" title="iPhone的Power键与Home键妙用">iPhone的Power键与Home键妙用</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nffish.com/archives/411/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone的Power键与Home键妙用</title>
		<link>http://nffish.com/archives/396</link>
		<comments>http://nffish.com/archives/396#comments</comments>
		<pubDate>Mon, 15 Feb 2010 04:13:05 +0000</pubDate>
		<dc:creator>Nffish</dc:creator>
				<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://nffish.com/?p=396</guid>
		<description><![CDATA[Power键和Home键是除了音量控制键外的两个按键了，不过他们的功能不容小视。
一、关于iPhone的开关机
关机：在iPhone开机状态下，按Power键3秒进入关机滑块，即可滑动关机。
开机：在iPhone关机状态下，按Power键1秒出现苹果LOGO，开始启动。
自动关机：在iPhone开机状态下，同时按Power键+Home键保持7秒（期间会出现关机滑块的），自动关机。此招可对付iPhone死机，软件无法退出。
自动重启：在iPhone开机状态下，同时按Power键+Home键保持8秒（期间会出现关机滑块的）出现苹果LOGO，开始重新启动。此招亦可对付iPhone死机，软件无法退出。
二、关于进入恢复模式
第一种方法： 当屏幕可见时
　　1.将你的iPhone关机
　　2.同时按住开关机键和home键
　　3.当你看见白色的苹果logo时，请松开开关机键，并继续保持按住home键。
　　4.iPhone进入恢复模式后，松开Home键
　
第二个方法： 当屏幕不可见时
1.同时按Power键+Home键保持7秒，先将iPhone关机。若已是关机状态取消此步并进行第二步。
2.同时按按Power键+Home键，持续到第10秒的时候，请立即松开开关键，并继续保持按住home键30秒。
4.相信iPhone已经进入恢复模式，这时松开Home键吧！
三、关于屏幕快取 
在 iPhone开机状态下，同时按Power键+Home键保持1秒-2秒之间都行，然后同时松开，屏幕白了一下并听到照相的“喀嚓”声，这时你 iPhone当前的屏幕已经被快照到照片库中。你可以打开iPhone的图片程序查看了。也可以连接电脑在资源管理器中出现的iPhone相机中拷贝出来 或删除。注：iPhone做为相机连接至电脑是免驱的。
四、关于软件
退出运行的软件：在软件运行状态下(未锁屏时)，按一下Home键，回到桌面。强制退出运行的软件：在软件运行状态下(未锁屏时)，按Home键8秒，回到桌面。此法可用在软件死掉的时候。
五、其它 
在待机锁定黑屏状态下，按一下Power键或Home键，都可唤醒iPhone而来到锁屏状态。在锁屏状态下连按Home键，会出现iPod的简单控制 （播放、停止、上一首和下一首）。在未锁屏状态下连按Home键，会进入电话个人收藏或者是iPod。可以在设置→通用→主屏幕按钮中进行设置。
相关日志iphone摔坏屏幕iPhone应用设计趋势]]></description>
			<content:encoded><![CDATA[<p>Power键和Home键是除了音量控制键外的两个按键了，不过他们的功能不容小视。</p>
<p><strong>一、关于iPhone的开关机</strong></p>
<p>关机：在iPhone开机状态下，按Power键3秒进入关机滑块，即可滑动关机。</p>
<p>开机：在iPhone关机状态下，按Power键1秒出现苹果LOGO，开始启动。</p>
<p>自动关机：在iPhone开机状态下，同时按Power键+Home键保持7秒（期间会出现关机滑块的），自动关机。此招可对付iPhone死机，软件无法退出。</p>
<p>自动重启：在iPhone开机状态下，同时按Power键+Home键保持8秒（期间会出现关机滑块的）出现苹果LOGO，开始重新启动。此招亦可对付iPhone死机，软件无法退出。</p>
<p><strong>二、关于进入恢复模式</strong></p>
<p>第一种方法： 当屏幕可见时<br />
　　1.将你的iPhone关机<br />
　　2.同时按住开关机键和home键<br />
　　3.当你看见白色的苹果logo时，请松开开关机键，并继续保持按住home键。<br />
　　4.iPhone进入恢复模式后，松开Home键<br />
　<br />
第二个方法： 当屏幕不可见时<br />
1.同时按Power键+Home键保持7秒，先将iPhone关机。若已是关机状态取消此步并进行第二步。<br />
2.同时按按Power键+Home键，持续到第10秒的时候，请立即松开开关键，并继续保持按住home键30秒。<br />
4.相信iPhone已经进入恢复模式，这时松开Home键吧！</p>
<p><strong>三、关于屏幕快取</strong> </p>
<p>在 iPhone开机状态下，同时按Power键+Home键保持1秒-2秒之间都行，然后同时松开，屏幕白了一下并听到照相的“喀嚓”声，这时你 iPhone当前的屏幕已经被快照到照片库中。你可以打开iPhone的图片程序查看了。也可以连接电脑在资源管理器中出现的iPhone相机中拷贝出来 或删除。注：iPhone做为相机连接至电脑是免驱的。</p>
<p><strong>四、关于软件</strong></p>
<p>退出运行的软件：在软件运行状态下(未锁屏时)，按一下Home键，回到桌面。强制退出运行的软件：在软件运行状态下(未锁屏时)，按Home键8秒，回到桌面。此法可用在软件死掉的时候。</p>
<p><strong>五、其它 </strong></p>
<p>在待机锁定黑屏状态下，按一下Power键或Home键，都可唤醒iPhone而来到锁屏状态。在锁屏状态下连按Home键，会出现iPod的简单控制 （播放、停止、上一首和下一首）。在未锁屏状态下连按Home键，会进入电话个人收藏或者是iPod。可以在设置→通用→主屏幕按钮中进行设置。</p>
<div  class="related_post_title">相关日志</div><ul class="related_post"><li><a href="http://nffish.com/archives/411" title="iphone摔坏屏幕">iphone摔坏屏幕</a></li><li><a href="http://nffish.com/archives/404" title="iPhone应用设计趋势">iPhone应用设计趋势</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://nffish.com/archives/396/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
