If I leave out the first part, the setString returns NULL in the NSLog command. Any thoughts on why I need to create the mutable from a string before I can set it ?
Why do you not create instances of NSRange with a pointer. For example as used in this tutorial you created NSRange therange. Why didn't you do NSRange *therange like you have been doing with every other class.....
@iapetus28 Use it like this:
NSMutableString *str2; str2 = [NSMutableString stringWithFormat: @"What is the first innings score"]; NSLog(@"%@", str2);
mirza30101980 1 month ago in playlist Objective C Programming Tutorial
If I leave out the first part, the setString returns NULL in the NSLog command. Any thoughts on why I need to create the mutable from a string before I can set it ?
iapetus28 4 months ago
Hi.. Bucky...
Really your Objective C Programming Tutorial is very helpful for new learner...
I am really thankful for that...
Please let me know if you have any other tutorial on Xcode.
Thanks
Sudip Barman
MrSudipBarman 5 months ago
bucky is a golden god
jkdorio 6 months ago
Thank you
kld0093 6 months ago
@ulquiorra0679 i just tried it out and it replaced only the first one. So i made a string with 2 mothers and it only saw the first one
vMattmcd 7 months ago
Great work!
kitezen 10 months ago
What if there was more than just one old value in our NSString?
will our NSRange return just the first one or all of them ?
ulquiorra0679 10 months ago
Great tutorials,but you realize that you don't have to copy the NSLog-'line' every time. Its probably not gone when you need it 5 lines below...
fyrstikknerd 1 year ago
Why do you not create instances of NSRange with a pointer. For example as used in this tutorial you created NSRange therange. Why didn't you do NSRange *therange like you have been doing with every other class.....
kdoske 1 year ago