Blog Directory logo  Blog Directory
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: 208

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
  •  Login
  • Register
  •            Submit a Blog
               Submit a Blog
    Automation Testing Trends to Watch Out for in 2022

    Technology

    Automation Testing Trends to W...


    Oct 17, 2022
    he Evolving Landscape: AI Takes Center Stage, While the Metaverse Lingers on the Horizon

    Technology

    he Evolving Landscape: AI Take...


    Jun 16, 2023
    Benefits of Rooftop Solar Sydney

    Technology

    Benefits of Rooftop Solar Sydn...


    May 27, 2021
    Establish your Virtual Dojo - LTIMindtree

    Technology

    Establish your Virtual Dojo - ...


    Feb 27, 2023
    How Offering Sales Can Benefit Your Internet Business.

    Technology

    How Offering Sales Can Benefit...


    Apr 12, 2016
    Canon IJ Printer Utility

    Technology

    Canon IJ Printer Utility...


    Feb 16, 2022