Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to combine two NSSet objects?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 361
    Comment on it

    Hello all,
    If you want to combine to NSSet objects, use the below code-

    NSSet *affordableMakes = [NSSet setWithObjects:@"Ford", @"Honda",
                                         @"Nissan", @"Toyota", nil];
    NSSet *fancyMakes = [NSSet setWithObjects:@"Ferrari", @"Maserati",
                                              @"Porsche", nil];
    NSSet *allMakes = [affordableMakes setByAddingObjectsFromSet:fancyMakes];
    NSLog(@"%@", allMakes);
    
    

    Happy Coding * :)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: