开发者

NSPredicate strings greater comparision

开发者 https://www.devze.com 2023-01-11 08:50 出处:网络
I am trying to compare if one NSString is \"greater\" than other NSString and I am stuck. Actually, my NSString contains a date and want to get all these objects that are greater than it.

I am trying to compare if one NSString is "greater" than other NSString and I am stuck. Actually, my NSString contains a date and want to get all these objects that are greater than it. I know I should 开发者_C百科convert it to date, but I want to keep it as NSString. Thank You!


Something like

[string1 compare:otherString] == NSOrderedDescending
0

精彩评论

暂无评论...
验证码 换一张
取 消