ios - print command adding \n to everything in Xcode 7 -
i thought start scratch @ learning to build ios apps new xcode 7, upon following tutorial involves using print(message) preview right of screen shows printed text added \n. example if wanted show "hello world", preview show "hello world\n".
can see i'm going wrong? apologise how stupid might look, want right beginning avoid problems further along, thanks! :)
in swift 2.0, print
has been redefined work println
in swift 1.0. can eliminate new line print(..., appendnewline: false)
edit: apparently language gods @ apple decided change things again. proper syntax, starting xcode 7 beta 6 , including xcode 7 gm now:
print(..., terminator: "")
Comments
Post a Comment