[Solved] Convert string to mutable data – objective c [duplicate]


You can do something like,

NSString *str = @"any string";

NSData *data = [str dataUsingEncoding:NSUTF8StringEncoding];

NSMutableData *mutableData = [data mutableCopy];;

Hope this will help 🙂

0

solved Convert string to mutable data – objective c [duplicate]