i have Array of String like: Array = P123, P234, P543, P678
and i have string like P12300.(this can be same string inside array or without trailling zeros).
i was using containsObject
if(Array containsObject: P123) ==> TRUE
if(Array containsObject: P23400) ==> FALSE
if(Array containsObject: P1230) ==> FALSE
is there any better way to compare string so that above ALL case's will be true?
at present i am using containsObject, and i am not getting desired result as condition will be only true for exact same string.
Please let me know good way..