优艾设计网

多级复杂对象数组 进行模糊查询?

优艾设计网 https://www.uibq.com 2023-04-18 09:00 出处:网络 作者:PS教程自学
{ \"code\": \"1\", \"msg\": \"成功\", \"data\": { \"members\":[ { \"user_uuid\": \"u111\", \"avatar_url\": \"1.png\", \"nickname\": \"1132\", \"group_grade\": \"3\"}, { \"user_uuid\": \"u111\", \"avat

{ "code": "1", "msg": "成功", "data": { "members":[ { "user_uuid": "u111", "avatar_url": "1.png", "nickname": "1132", "group_grade": "3"}, { "user_uuid": "u111", "avatar_url": "1.png", "nickname": "fdsa", "group_grade": "2" }, { "user_uuid": "u111", "avatar_url": "1.png优艾设计网_在线设计", "nickname": "vcxz", "group_grade": "1" }, { "user_uuid": "u111", "avatar_url": "1.png", "nickname": "fdsatgerwvcx", "group_grade": "1" }, { "user_uuid": "u111", "avatar_url": "1.png", "nickname": "vcxztewq", "group_grade": "1" }, { "user_uuid": "u111", "avatar_url": "1.png", "nickname": "vxcfewq", "group_grade": "1" } ], } }

JSON格式如上,转换为了model,我现在要对这个数组里的model的nickname进行模糊查询,除了用数据库SQL查询,没有没什么直接在内存里进行的方法吗?


ty_129989476 2022-06-30 18:57

优艾设计网_Photoshop交流

NSPredicate


0

精彩评论

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