I'm trying to extract the string from NSAttributedString as an NSString like this:
But this doesn't work. There are no errors its just as if [label string] returns nothing. Any help on extracting the string from the attributed string will be appreciated.
Thanks
Code:
// Extract the attributed label's(label) text
NSString *text = [[NSString alloc] initWithString: [label string]];
But this doesn't work. There are no errors its just as if [label string] returns nothing. Any help on extracting the string from the attributed string will be appreciated.
Thanks