stringByReplacingOccurencesOfString is unrecognized

Discussion in 'iOS Programming' started by gggTony, Nov 17, 2008.

  1. gggTony macrumors newbie

    Nov 17, 2008
    When I use stringByReplacingOccurrencesOfString, xcode always complains that NSString may not respond to "-stringByReplacingOccurrencesOfString:::". But the method substringWithRange has no problem.

    Some other method, e.g. performSelectorOnMainThread, xcode also complains that NSObject may not respond to it.

    It seems that all above methods are declared under

    Is something wrong in the configuration? I use iphone SDK 2.1 default configuration.

    Does anyone have such issue?

Share This Page