ashishkakkad.com
Use of constant (#define) in Swift Language - iOS - Ashish Kakkad
In Objective-C we are using a header file to create constant variables like as [code lang=”obj-c”] // Objective-C #define APP_ALERT_TITLE "Objective-C Constant" [/code] Swift has new syntax to define the constant (#define) [code lang=”obj-c”] // Swift let APP_ALERT_TITLE = "Swift Constants" [/code] Lets try Create a swift file with the constants [code lang=”obj-c”] import Foundation ... Read more
Ashish Kakkad