Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-21-2010, 05:07 AM   #3 (permalink)
harrytheshark
Registered Member
 
Join Date: Dec 2008
Location: UK
Posts: 1,896
harrytheshark is on a distinguished road
Default

In my experience, containsObjects works with different pointers as long as the strings have the same letters and words.
For example:
Code:
NSString * aString = @"some words";
NSString * anotherString = @"some words";

NSArray * anArray = [NSArray arrayWithObject:aString];
if ([anArray containsObject:anotherString]){
    NSLog(@"yep");
}
If you run that you will get the NSLog.
harrytheshark is offline   Reply With Quote
 

» Advertisements
» Online Users: 581
13 members and 568 guests
BrianSlick, ChrisYates, coreyb, croy1, djohnson, dre, Duncan C, headkaze, jbro, jeroenkeij, sacha1996, smithdale87, stanny
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,548
Threads: 94,073
Posts: 402,703
Top Poster: BrianSlick (7,990)
Welcome to our newest member, mrtdmb
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:32 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.