iOS Swift4如何检查字符串是否不为零且不为空?
<p><div>
<aside class="s-notice s-notice__info post-notice js-post-notice mb16"role="status">
<div class="d-flex fd-column fw-nowrap">
<div class="d-flex fw-nowrap">
<div class="flex--item wmn0 fl1 lh-lg">
<div class="flex--item fl1 lh-lg">
<b>这个问题在这里已经有了答案</b>:
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>我会选择类似的东西</p>
<pre><code>if let title = object.title, !title.isEmpty {
// it's not nil nor an empty string
}
</code></pre></p>
<p style="font-size: 20px;">关于iOS Swift4如何检查字符串是否不为零且不为空?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/50625414/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/50625414/
</a>
</p>
页:
[1]