How to write this code in swift 3.0?
NSSTring *countString=[NSString stringWithFormat:@"%d %@",count,EDIT_CHAR];
where, EDIT_CHAR is a Macro & count is integer.
How to write this code in swift 3.0?
NSSTring *countString=[NSString stringWithFormat:@"%d %@",count,EDIT_CHAR];
where, EDIT_CHAR is a Macro & count is integer.
Swift haven't a preprocessor, but you can create a structure with all you constants or flags.
struct MyAppConstants {
static let editChar = "f"
// Etc...
}
You can call it as MyAppConstants.editChar
You question is tagged swift but the code you've posted is ObjC.