I am new in iOS app development. I want to print string if string variable is null.
I am trying this code:(C#)
strObj = strObj??string.Empty;
In this code if strObj is null, value of string.Empty (for ex: string: "") will be assigned.
So how can I achieve this in Objective-C?
Tarun Kumar
08-Dec-2015You can check null string like my example, I am checking first name and last name if any one is not available then it will not assign in personName. Use it as your need;
Here is my example: