Blog Directory logo  Blog Directory
           Submit a Blog
  •  Login
  • Register
  •            Submit a Blog
    Submit a Blog in Featured for only $10 with PaypalFeatured BlogsBlog Listing
    Member - { Blog Details }

    hero 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: 336

    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 }
    © 2025, Blog Directory
     | 
    Google Pagerank: 
    PRchecker.info
     | 
    Support
    RGBIC LED Permanent Outdoor Lights

    Technology

    RGBIC LED Permanent Outdoor Li...


    Feb 8, 2024
    A Comprehensive Guide to ILVE Oven Door Repair

    Technology

    A Comprehensive Guide to ILVE ...


    Aug 17, 2024
    Quicken printer issues with PDF

    Technology

    Quicken printer issues with PD...


    Apr 7, 2016
    Why You Should Install CCTV Cameras for Security in Your Home

    Technology

    Why You Should Install CCTV Ca...


    Feb 27, 2015
    Changing Lives and Receding Risks with Android Spy App

    Technology

    Changing Lives and Receding Ri...


    Jan 13, 2023
    Why Having an Android App Is Important For Your Business

    Technology

    Why Having an Android App Is I...


    May 25, 2016