📄 iphone的api的问题.html
字号:
</table></div>
<div id="menu_profile" class="menu" style="display:none;"><table width="120" cellspacing="1" cellpadding="5">
<tr><th class="h">控制面板</th></tr>
<tr><td><a href="profile.php">控制面板首页</a></td></tr>
<tr><td><a href="profile.php?action-modify.html">编辑个人资料</a></td></tr>
<tr><td><a href="profile.php?action-show-uid-1386.html">查看个人资料</a></td></tr>
<tr><td><a href="profile.php?action-friend.html">好友列表</a></td></tr>
<tr><td><a href="profile.php?action-permission.html">用户权限查看</a></td></tr>
<tr><td><a href="userpay.php">交易币管理</a></td></tr>
<tr><td><a href="profile.php?action-change.html">积分转换</a></td></tr>
<tr><td><a href="profile.php?action-buy.html">特殊组购买</a></td></tr>
<tr><td><a href="profile.php?action-favor.html">收藏夹</a></td></tr>
<tr><td><a href="personal.php">我的主题</a></td></tr>
</table></div>
<div id="menu_sort" class="menu" style="display:none;">
<table width="120" cellspacing="1" cellpadding="5">
<tr><th class="h">统计排行</th></tr>
<tr><td class="f_one"><a href="sort.php">基本统计信息</a></td></tr>
<tr><td class="f_one"><a href="sort.php?action-ipstate.html">到访IP统计</a></td></tr>
<tr><td class="f_one"><a href="sort.php?action-team.html">管理团队</a></td></tr>
<tr><td class="f_one"><a href="sort.php?action-admin.html">管理统计</a></td></tr>
<tr><td class="f_one"><a href="sort.php?action-online.html">在线统计</a></td></tr>
<tr><td class="f_one"><a href="sort.php?action-member.html">会员排行</a></td></tr>
<tr><td class="f_one"><a href="sort.php?action-forum.html">版块排行</a></td></tr>
<tr><td class="f_one"><a href="sort.php?action-article.html">帖子排行</a></td></tr>
</table></div>
</div>
<div id="main">
<style type="text/css">
.signature{height:expression(this.scrollHeight>parseInt(this.currentStyle.maxHeight)?this.currentStyle.maxHeight:"auto");}
.tiptop a,.tipad a{ margin:0 .2em}
.tips li{list-style:none;width:30%;height:24px;line-height:24px; min-width:210px;margin:0 5px;float:left;overflow:hidden;text-overflow:ellipsis;}
.dig{ float:left; font-size:12px; background:#FFFFD4 url(images/Leopard/read/dig.gif) no-repeat .4em .1em; border:#E6E6B3 1px solid ; border-bottom-width:2px; border-right-width:2px; padding:.2em .8em .2em 2.4em; cursor: pointer; margin:.6em .1em; color:#000}
.dig:hover{ border:#E6E6B3 2px solid ; border-bottom-width:1px; border-right-width:1px; text-decoration:none}
.menu a.a6:hover{text-decoration:underline;background:#f0f0f0;color:#00f}
.user-pic { margin:0 auto .5em;}
.user-pic table{ border:none}
.user-pic img.pic{ margin:0 0 .3em;background:#F3F8EF; padding:3px; border:1px solid #DAEBCD}
.user-info{ position:absolute;line-height:160%; margin-left:-1.5em; margin-top:-1em}
.user-infoWrap{background:#FFF; border:1px solid #004C7D; border-top:1px #A6CBE7 solid; border-left:1px solid #A6CBE7; padding:.5em 1em; margin-left:20px;display:block;}
.user-info .co{position:absolute; width:10px;height:20px; margin-left:-1.8em; margin-top:2em; background:url(images/wind/user-info-co.gif)}
/*字体大小*/
.small{font-size:12px}
.middle{font-size:14px}
.big{font-size:18px}
</style>
<div class="t3" style="margin-top:8px"><table width="100%" cellspacing="0" cellpadding="0" align="center">
<tr><td class="b"><img src="images/Leopard/index/home_menu.gif" align="absmiddle" id="td_cate" onMouseOver="read.open('menu_cate','td_cate');" style="cursor:pointer;" /> <a href="index.php">Cocoa China 开发讨论区</a> » <a href="thread.php?fid-6-page-7.html">iPhone/iPod Touch开发一般讨论区</a> » <a href="read.php?tid-162.html">iphone的API的问题</a> <a href="rss.php?tid=162" target="_blank" title="Rss订阅本帖最新内容"><img align="absmiddle" src="images/Leopard/rss.png" /></a></td></tr>
</table></div>
<div id="menu_cate" class="menu" style="display:none;"><div style="padding:5px;height:420px;width:200px;overflow-Y:auto;"><ul class="ul1"><li> <a href="index.php?cateid-1.html">>> Cocoa China苹果程序开发</a></li><li> <a href="thread.php?fid-2.html">|- 苹果开发一般讨论区</a></li><li> <a href="thread.php?fid-6.html">|- iPhone/iPod Touch开发一般讨论区</a></li><li> <a href="thread.php?fid-13.html">|- 其他平台及Web App框架开发综合讨论区</a></li><li> <a href="thread.php?fid-8.html">|- 开发资源区</a></li><li> <a href="index.php?cateid-4.html">>> 其他苹果相关</a></li><li> <a href="thread.php?fid-5.html">|- 苹果灌水区</a></li><li> <a href="thread.php?fid-10.html">|- 苹果互通有无区</a></li><li> <a href="thread.php?fid-11.html">|- 站务区</a></li></ul></div></div>
<!--ads begin-->
<!--ads end-->
<div class="t3"><table width="100%" align="center" cellspacing="0" cellpadding="0">
<tr><td align="left"><div class="fl"></div></td><td align="right" style="padding-bottom:.2em"><a href="post.php?action-reply-fid-6-tid-162.html"><img src="images/Leopard/reply.png" /></a>
<a href="post.php?fid-6.html" style="margin-left:.5em"><img src="images/Leopard/post.png" id="td_post" /></a>
</td></tr>
</table></div>
<div class="menu tac f14" id="menu_post" style="display:none;"><ul style="width:99px;">
<li><a href="post.php?fid-6.html">新 帖</a></li>
</ul>
</div>
<form name="delatc" method="post">
<input type="hidden" name="fid" value="6" />
<input type="hidden" name="tid" value="162" />
<div class="t" style="margin-bottom:0px; border-bottom:0"><table cellspacing="0" cellpadding="0" width="100%">
<tr><th class="h"><strong class="fl w"><b>本页主题:</b> iphone的API的问题</strong> <span class="fr w"> <a class="fn" href="http://www.cocoachina.com/bbs/simple/index.php?t162.html"> 打印</a> | <a class="fn" style="cursor:pointer;" onclick="Addtoie('http://www.cocoachina.com/bbs/read.php?fid=6&tid=162','Cocoa China 开发讨论区--iphone的API的问题');"> 加为IE收藏</a> | <a style="cursor:pointer;" title="http://www.cocoachina.com/bbs/read.php?fid=6&tid=162" onclick="clipboardData.setData('Text','http://www.cocoachina.com/bbs/read.php?fid=6&tid=162&u=1386')">复制链接</a> | <a class="fn" style="cursor:pointer;" onclick="sendmsg('pw_ajax.php?action=favor&tid=162','',this.id)" id="favor">收藏主题</a> | <a href="job.php?action-previous-fid-6-tid-162-fpage-7-goto-previous.html" class="fn">上一主题</a> | <a href="job.php?action-previous-fid-6-tid-162-fpage-7-goto-next.html" class="fn">下一主题</a></span> </th>
</tr>
<tr><td></td></tr>
<tr class="tr2"><td colspan="2" class="tar">
<a id="usetool" style="cursor:pointer" onclick="sendmsg('pw_ajax.php?action=usetool','',this.id)" />[使用道具]</a>
<br /></td>
</tr>
<tr><td></td></tr>
</table></div>
<a name=tpc></a>
<div class="t t2" style="border-top:0"><table cellspacing="0" cellpadding="0" width="100%" style="table-layout:fixed;border-top:0">
<tr class="tr1"><th style="width:20%" rowspan="2" class="r_two">
<b>jerrylying</b>
<div style="margin:.3em 0 .4em .2em"></div>
<div class="user-pic"><table style="border:0"><tr><td width="1">
<a href="profile.php?action-show-uid-233.html" target="_blank" onmouseover="mt=setTimeout('read.open(\'showface_0\',\'sf_0\',1,21);',700);" onmouseout="clearTimeout(mt);read.close();" style="cursor:pointer;"><img class="pic" src="images/face/2.gif" border="0" /></a>
</td><td style="vertical-align:top"><span id="sf_0"></span></td></tr></table>
</div>
级别: <font color="#555555">新手上路</font><br />
<img style="margin:.2em 0 .6em" src="images/Leopard/level/8.gif" /><br />
<span class="user-info" id="showface_0" style="display:none">
<span class="user-infoWrap"><span class="co"></span>
<a href="profile.php?action-show-uid-233.html"><img src="images/Leopard/read/profile.gif" title="查看作者资料" /></a> <img src="images/Leopard/read/message.gif" title="发送短消息" onclick="sendmsg('pw_ajax.php?action=msg&touid=233','','sf_0')" style="cursor:pointer" /><img onclick="addfriend('233')" style="cursor:pointer" src="images/Leopard/read/friends.gif" title="加为好友" />
<img onclick="sendmsg('pw_ajax.php?action=usertool&uid=233','','sf_0')" src="images/Leopard/read/magic.gif" style="cursor:pointer" title="对该用户使用道具" />
<br />
精华:
<span class="s4">0</span>
<br />
发帖: <span class="s1 f9">18</span><br />
威望: <span class="s2 f9">18 点</span><br />
可可豆: <span class="s3 f9">179 CB</span><br />
贡献值: <span class="s1 f9">0 点</span><br />
iChat:<br />
GTalk:<br />
在线时间:29(小时)<br />
<span class="gray">注册时间:2008-07-10<br />
最后登录:2008-11-21 </span>
</span></span>
</th>
<th height="100%" class="r_one" valign="top" id="td_tpc" style="padding:5px 15px 0 15px; border:0;width:80%; overflow:hidden">
<div class="tiptop">
<span class="fr" style="margin:0 0 0 1em"><a style="cursor:pointer" onclick="fontsize('small','tpc')">小</a> <a style="cursor:pointer" onclick="fontsize('middle','tpc')">中</a> <a style="cursor:pointer" onclick="fontsize('big','tpc')">大</a></span>
<span class="fl" style="white-space:nowrap;">
<a href="post.php?action-quote-fid-6-tid-162-pid-tpc-article-0.html" onclick="return sendurl(this,4,event)" id="quote_tpc" title="引用回复这个帖子">引用</a> <a id="recommend_tpc" href="operate.php?action-recommend-tid-162.html" onclick="return sendurl(this,8)" title="推荐此帖">推荐</a> <a href="post.php?action-modify-fid-6-tid-162-pid-tpc-article-0.html" id="modify_tpc" onclick="return sendurl(this,4,event)">编辑</a>
<a href="operate.php?action-report-tid-162-pid-tpc.html" onclick="return sendurl(this,8)" id="report_tpc">举报</a>
<a href="read.php?tid-162-uid-233.html" title="只看楼主的所有帖子">只看</a>
<a style="cursor:pointer;" onclick="copyUrl('tpc')" title="复制此楼地址">复制</a>
</span>
<div class="c"></div>
</div>
<h1 id="subject_tpc" class="fl"><img src="images/post/emotion/1.gif" align="left" border="0" /> iphone的API的问题</h1>
<div id="p_tpc" class="c"></div>
<div class="tpc_content" id="read_tpc">iphone上哪个系统API能够实现windows上类似GetTickCount()类似的功能吗?<br />还有Iphone的API能够直接在C++里调用吗?<br />谢谢</div>
</th>
</tr>
<tr class="tr1 r_one">
<th style="vertical-align:bottom;padding-left:15px;border:0">
<div id="w_tpc" class="c"></div>
<div class="tipad"><span style="float:right">
<a href="javascript:scroll(0,0)" title="顶端" >顶端</a></span>
<span class="gray">Posted: 2008-07-10 10:16 | </span>
<span><a class="s3" title="回复此楼" style="cursor:pointer;" onclick="postreply('回 楼主(jerrylying) 的帖子');">[楼 主]</a></span>
</div></th>
</tr></table>
</div>
<a name=740></a>
<div class="t t2" ><table cellspacing="0" cellpadding="0" width="100%" style="table-layout:fixed;border-top:0">
<tr class="tr1"><th style="width:20%" rowspan="2" class="r_two">
<b>gagaga</b>
<div style="margin:.3em 0 .4em .2em"></div>
<div class="user-pic"><table style="border:0"><tr><td width="1">
<a href="profile.php?action-show-uid-2.html" target="_blank" onmouseover="mt=setTimeout('read.open(\'showface_1\',\'sf_1\',1,21);',700);" onmouseout="clearTimeout(mt);read.close();" style="cursor:pointer;"><img class="pic" src="attachment/upload/2.jpg" width="100" height="100" border="0" /></a>
</td><td style="vertical-align:top"><span id="sf_1"></span></td></tr></table>
</div>
级别: <font color="#555555">论坛版主</font><br />
<img style="margin:.2em 0 .6em" src="images/Leopard/level/5.gif" /><br />
<span class="user-info" id="showface_1" style="display:none">
<span class="user-infoWrap"><span class="co"></span>
<a href="profile.php?action-show-uid-2.html"><img src="images/Leopard/read/profile.gif" title="查看作者资料" /></a> <img src="images/Leopard/read/message.gif" title="发送短消息" onclick="sendmsg('pw_ajax.php?action=msg&touid=2','','sf_1')" style="cursor:pointer" /><img onclick="addfriend('2')" style="cursor:pointer" src="images/Leopard/read/friends.gif" title="加为好友" />
<img onclick="sendmsg('pw_ajax.php?action=usertool&uid=2','','sf_1')" src="images/Leopard/read/magic.gif" style="cursor:pointer" title="对该用户使用道具" />
<br />
精华:
<a href="search.php?authorid-2-digest-1.html" target="_blank" class="s4 f9">1</a>
<br />
发帖: <span class="s1 f9">521</span><br />
威望: <span class="s2 f9">523 点</span><br />
可可豆: <span class="s3 f9">5230 CB</span><br />
贡献值: <span class="s1 f9">0 点</span><br />
iChat:<br />
GTalk:<br />
在线时间:84(小时)<br />
<span class="gray">注册时间:2008-03-29<br />
最后登录:2008-11-22 </span>
</span></span>
</th>
<th height="100%" class="r_one" valign="top" id="td_740" style="padding:5px 15px 0 15px; border:0;width:80%; overflow:hidden">
<div class="tiptop">
<span class="fr" style="margin:0 0 0 1em"><a style="cursor:pointer" onclick="fontsize('small','740')">小</a> <a style="cursor:pointer" onclick="fontsize('middle','740')">中</a> <a style="cursor:pointer" onclick="fontsize('big','740')">大</a></span>
<span class="fl" style="white-space:nowrap;">
<a href="post.php?action-quote-fid-6-tid-162-pid-740-article-1.html" onclick="return sendurl(this,4,event)" id="quote_740" title="引用回复这个帖子">引用</a> <a id="recommend_740" href="operate.php?action-recommend-tid-162.html" onclick="return sendurl(this,8)" title="推荐此帖">推荐</a> <a href="post.php?action-modify-fid-6-tid-162-pid-740-article-1.html" id="modify_740" onclick="return sendurl(this,4,event)">编辑</a>
<a href="operate.php?action-report-tid-162-pid-740.html" onclick="return sendurl(this,8)" id="report_740">举报</a>
<a href="read.php?tid-162-uid-2.html" title="只看该作者的所有回复">只看</a>
<a style="cursor:pointer;" onclick="copyUrl('740')" title="复制此楼地址">复制</a>
</span>
<div class="c"></div>
</div>
<h1 id="subject_740" class="fl"> </h1>
<div id="p_740" class="c"></div>
<div class="tpc_content" id="read_740">应该是NSDate里面的<br />– timeIntervalSinceDate: <br />– timeIntervalSinceNow <br />+ timeIntervalSinceReferenceDate <br />– timeIntervalSinceReferenceDate <br />– timeIntervalSince1970 <br />这几个吧。<br /><a href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/Reference/Reference.html" target="_blank">http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSDate_Class/Reference/Reference.html</a><br /><br />不过如果需要用类似timer的东西,直接用NSTimer就可以了。<br /><br />第二个问题是可以的,我记得谁好像问过类似的问题,可以翻翻旧贴。objective-c的实质其实就是c。</div>
</th>
</tr>
<tr class="tr1 r_one">
<th style="vertical-align:bottom;padding-left:15px;border:0">
<div id="w_740" class="c"></div>
<div class="tipad"><span style="float:right">
<a href="javascript:scroll(0,0)" title="顶端" >顶端</a></span>
<span class="gray">Posted: 2008-07-10 12:40 | </span>
<span><a class="s3" title="回复此楼" style="cursor:pointer;" onclick="postreply('回 1楼(gagaga) 的帖子');">1 楼</a></span>
</div></th>
</tr></table>
</div>
<a name=a></a><a name=741></a>
<div class="t t2" ><table cellspacing="0" cellpadding="0" width="100%" style="table-layout:fixed;border-top:0">
<tr class="tr1"><th style="width:20%" rowspan="2" class="r_two">
<b>huajun</b>
<div style="margin:.3em 0 .4em .2em"></div>
<div class="user-pic"><table style="border:0"><tr><td width="1">
<a href="profile.php?action-show-uid-232.html" target="_blank" onmouseover="mt=setTimeout('read.open(\'showface_2\',\'sf_2\',1,21);',700);" onmouseout="clearTimeout(mt);read.close();" style="cursor:pointer;"><img class="pic" src="images/face/none.gif" border="0" /></a>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -