Quote:
Originally Posted by prathibha
HI,
I have one string called @"how are u", i am converting this to hex string using nsdata, now i want to check that string is multiple of 8, if it is not multiple of 8 then i have to append the bid padding value for nsdata. so hw can i append the string into nsdata value.
Please help me any one.
|
Post your code.
Note that you can't append to NSData. NSData is immutable. You need to create an NSMutableData object if you want to append data to it.
Once you have a mutable data object, you can use the method appendData to append the data from your string to the data object.