iphone - NString 显示 NSDate 是 000 而不是 iPhone 应用程序中的实际日期
<p><p>我有一个应用程序,我在其中使用 NSDate 并将其保存在 NSString 但 NSString 存储 000.000 像这样这里是我正在使用的代码</p>
<pre><code>NSDate* date = ;
NSDateFormatter* formatter = [ init];
;
NSString* str = ;
NSString*content_AddedTime=str;
NSString *post =[ init];
post = ;
</code></pre></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>试试这个:</p>
<pre><code>;
</code></pre>
<p>或者你可以使用:</p>
<pre><code>;
</code></pre>
<p>希望对您有所帮助!</p></p>
<p style="font-size: 20px;">关于iphone - NString 显示 NSDate 是 000 而不是 iPhone 应用程序中的实际日期,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/17940126/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/17940126/
</a>
</p>
页:
[1]