What is the difference between string and nsstring?
Answer / Parvez Aalam
In Objective-C, both String and NSString are used to represent text. However, they have some differences:n1. String: It is a C-based Foundation framework class, which is not object-oriented and has no methods or properties for common string operations like length, substring, etc. On the other hand, it is more efficient due to being C based.n2. NSString: It is an Objective-C runtime class, which provides many useful string handling capabilities such as conversion, comparison, searching, and mutation. However, it is less efficient than String because it is object-oriented.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is dot notation?
Is objective c faster than swift?
What is an example of category?
Why swift is faster then objective c?
How to initialize nsmutabledictionary in objective c?
What is objective c in ios?
Can you write setter method for a retain property?
What is the difference between objective c and c++?
Does objective c have multiple inheritance?
Is objective c deprecated?
Why is objective c syntax so weird?
Explain class definition in objective-c?