Blog Directory logo  Blog Directory
  •  Login
  • Register
  • Featured BlogsBlog Listing
    © 2026, Blog Directory
     | 
    Support
               Submit a Blog
               Submit a Blog
    Member - {  Blog Details  } Save to Wishlist

    Blog image

    blog address: http://findnerd.com/list/view/Difference-between--and-isEqual-in-objective-c/2137/

    keywords: Difference Between Equity Operators

    member since: Jun 3, 2015 | Viewed: 457

    Difference between "==" and "isEqual:" in objective C

    Category: Technology

    These two operators or function can be used to check equity of objects or operands. "==" is used to check if pointer values of objects are same. However "isEqual:" is used to test if both objects are having same values. So "==" works on reference and "isEqual" works on value. It can be easily understand by following example: NSMutableArray *array1 = [[NSMutableArray alloc]initWithObjects:@"A", @"B", nil]; NSMutableArray *array2 = [[NSMutableArray alloc]initWithObjects:@"A", @"B", nil]; if (array1 == array2) { NSLog(@"=="); } if ([array1 isEqual:array2]) { NSLog(@"isequal"); } For full blog kindly visit the link http://findnerd.com/list/view/Difference-between--and-isEqual-in-objective-c/2137/



    { More Related Blogs }
    Buy highly automated temperature recorder for environmental recording

    Technology

    Buy highly automated temperatu...


    Mar 1, 2016
    Virtual Meeting Platform for Interactive whiteboards

    Technology

    Virtual Meeting Platform for I...


    Jun 13, 2022
    Best Inventory Management Software for Small Businesses

    Technology

    Best Inventory Management Soft...


    Jul 12, 2024
    Millennium Compendium

    Technology

    Millennium Compendium...


    Feb 3, 2016
    Hotel Booking Engine

    Technology

    Hotel Booking Engine...


    Sep 20, 2024
    The ‘Think Big’ Initiative by O2

    Technology

    The ‘Think Big’ Initiative by ...


    Feb 9, 2016