Removing parentheses from the string in iOS

后端 未结 4 1939
迷失自我
迷失自我 2020-12-11 11:03

I am trying to remove all the parentheses in my string in iOS. Saw this stackoverflow post: how to remove spaces, brackets and " from nsarray

The answer:

4条回答
  •  离开以前
    2020-12-11 11:50

    Try using
    [[attributedLabel.text stringByReplacingOccurrencesOfString:@"(" withString:@""] stringByReplacingOccurrencesOfString:@")" withString:@""];
    instead.

提交回复
热议问题