I am very new to Objective C, and am using the Smyth book Objective-C 2.0 Essentials-Third Edition. I'm working through the string stuff.
So why would I do something like ii=[string1 intValue];
when in the native 'C', I can just do ii=atoi(string1);
I'm not being sarcastic; I assume that the intValue method expands functionality in some way, or they wouldn't have bothered.
Sorry, trying to find the delete button. I believe that I've figured it out on my own.
In the book, he used an example like @"3456", which will work in either case, but assuming that string1 is an object, then atoi() wouldn't work.
So why would I do something like ii=[string1 intValue];
when in the native 'C', I can just do ii=atoi(string1);
I'm not being sarcastic; I assume that the intValue method expands functionality in some way, or they wouldn't have bothered.
Sorry, trying to find the delete button. I believe that I've figured it out on my own.
In the book, he used an example like @"3456", which will work in either case, but assuming that string1 is an object, then atoi() wouldn't work.
Last edited: