Xcode 7.3 came with Swift 2.2 Version. I just updated to Xcode 7.3 and found following warnings because of Swift version change.swift
Warning Function Varapp
1ide 2oop 3post |
|
Solution:orm
1blog 2 3 |
|
If you want to update that variable inside the function then you have to create copy of that variable to do operations on that.
Warning Selector
1 |
|
OR
1 |
|
Solution:
1 |
|
Apple Documentation : Added information about the #selector syntax for Objective-C selectors to the Selector Expression section.
Warning ++
1 2 3 4 5 6 |
|
Solution:
1 2 3 4 5 6 |
|
Apple Documentation : Removed discussion of C-style for loops, the ++ prefix and postfix operators, and the — prefix and postfix operators.
Warning For Statement
1 2 3 |
|
Solution:
1 2 3 |
|
Warning __FILE__
Warning with:
1 |
|
Solution:
1 |
|
More swift tutorials/articles are available here.
Happy Coding 🙂