公告
财富商城
积分规则
提问
发文
2019-10-02 15:13发布
冷血范
This question already has an answer here:
How to convert a string into mutable data in objective c
You can convert NSString to NSData by using
NSString* str = @"mystring"; NSData* data = [str dataUsingEncoding:NSUTF8StringEncoding]; NSMutableData *yourdata = [data mutableCopy];
hope it helps you :)
You can do something like,
NSString *str = @"any string"; NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding]; NSMutableData *mutableData = [data mutableCopy];;
Hope this will help :)
最多设置5个标签!
You can convert NSString to NSData by using
hope it helps you :)
You can do something like,
Hope this will help :)