if(lyricsId == areleased.trackId)
{
----------;
----------;
}
when i am working with above code it does not entered into that loop So, I used the below code,then it entered into the loop and i got out put.
if([lyricsId isEqualToString:areleased.trackId])
{
----------;
----------;
}
Is there any difference between == and isEqualToString.
lyricsIdandarelease.trackIdare (I presume) of typeNSString*. The==simply compares the pointers, which will usually be different even if their contents are the same. TheisEqualToStringmethod compares their contents.