¡@

Home 

2014/10/15 ¤U¤È 10:04:38

iphone Programming Glossary: bobdole

NS String comparison fails with stringWithFormat

http://stackoverflow.com/questions/1783719/ns-string-comparison-fails-with-stringwithformat

on top of standard C. As a result obj c just as in normal c doesn't have operator overloading. NSString controlName @ bobDole The above code creates a pointer to the string @ bobDole controlName is not the value itself but instead is really just.. c doesn't have operator overloading. NSString controlName @ bobDole The above code creates a pointer to the string @ bobDole controlName is not the value itself but instead is really just a long integer that says the memory address of an object... mutableCopy is being used to prevent the compiler from optimizing out the validity of this example. NSString string1 @ bobDole NSString string2 string1 mutableCopy NSLog @ d string1 string2 The above code will always print false or zero in this case..