adspace


How can we make a property optional in swift?

Answer Posted / Aziz Aslam Siddique

"In Swift, you can make a property optional by appending a question mark (?) after the variable type. For example: var myOptionalString: String?"

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain some biggest changes in usernotifications.

926


Explain the common execution states for a swift ios app (ios application lifecycle).

900


How can you define a base class in swift?

931