如果 NSString 不等于函数? [英] if NSString does not equal function?

查看:75
本文介绍了如果 NSString 不等于函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经到处搜索了这个,包括苹果关于 NSString 的文档(也许我没有看到?)但我试图在 xCode 中找到一种方法来检查 NSString 是否不等于某物.很喜欢

I have searched all over the place for this, including apple's docs on NSString (maybe I didn't see?) but I am trying to find a method in xCode for checking wether a NSString does not equal to something. Much like

if (myNSSting = @"text" {...

除非我特别想检查它是否不等于文本".

except specifically I want to check if it does not equal to 'text'.

推荐答案

 if(![myNSString isEqualToString:@"text"])

这篇关于如果 NSString 不等于函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆