开发者

Search in NSMutableDictionary only with partial key

开发者 https://www.devze.com 2023-04-09 01:45 出处:网络
I want to know if there is a possibility to search in an NSMutableDictionary with a开发者_开发知识库 partial key.

I want to know if there is a possibility to search in an NSMutableDictionary with a开发者_开发知识库 partial key.

For Eg.: Let key be 2345 and partialkey can be 2 or 23 or 234,etc

Thanks


You can use the allKeys method to get an array of all the keys and then filter them based on your partial key.

0

精彩评论

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