I'm building a Twitter iPhone app, and it needs to detect when you enter a hashtag or @-mention within a string in a UITextView.
How do I find all words preceded by the "@" or "#" characters within an NSString?
Thanks for your help!
if([[test substringToIndex:1] isEqualToString:@"@"] || [[test substringToIndex:1] isEqualToString:@"#"]) { bla blah blah }