Edit: I got my answer for the first question.
I have:
(These are only certain parts from the file.)
NSString *nameString = string; // (string is a name that exists)
nameString = [NSDate date];
nameString = [nameString substringWithRange:NSMakeRange(10, 4)];
NSLog(nameString);
The application works, but when I make a label display the text in nameString, it crashes.
Why? What am I doing wrong?
If I am not doing this correctly, then:
How can I remove certain parts of a string?
For example: in C# I would have done:
str = str.Remove(5,3);
Thanks, Eliav
I have:
(These are only certain parts from the file.)
NSString *nameString = string; // (string is a name that exists)
nameString = [NSDate date];
nameString = [nameString substringWithRange:NSMakeRange(10, 4)];
NSLog(nameString);
The application works, but when I make a label display the text in nameString, it crashes.
Why? What am I doing wrong?
If I am not doing this correctly, then:
How can I remove certain parts of a string?
For example: in C# I would have done:
str = str.Remove(5,3);
Thanks, Eliav