Blog Directory logo  Blog Directory
           Submit a Blog
  •  Login
  • Register
  •  Featured Blogs
     Blog Listing
    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: 522

    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 }
    © 2026, Blog Directory
     | 
    Support
               Submit a Blog
    How to use React Context API with Functional | Class Components

    Technology

    How to use React Context API w...


    Jun 26, 2023
    The Importance of UI/UX Development

    Technology

    The Importance of UI/UX Develo...


    Feb 7, 2022
    Top PHP Companies in India

    Technology

    Top PHP Companies in India...


    Oct 19, 2023
    A Quick Guide to Understanding Crypto Payment Gateway

    Technology

    A Quick Guide to Understanding...


    Aug 8, 2022
    A Step towards Efficient Data Mining through Data Science Strategies

    Technology

    A Step towards Efficient Data ...


    May 18, 2016
    Why not go for Direct Line Insurance

    Technology

    Why not go for Direct Line Ins...


    Apr 12, 2016