will be removed in Swift 3
2016. 3. 22. 17:42ㆍProgramming/Swift
반응형
Swift2.0
|
Swift3.0
|
typealias UnderlyingType = Void
|
associatedtype UnderlyingType = Void
|
@warn_unused_result func infix<T>(lhs: Expressible, _ rhs: Expressible, wrap: Bool = true, function: String = __FUNCTION__) -> Expression<T> {
return function.infix(lhs, rhs, wrap: wrap) }
|
@warn_unused_result func infix<T>(lhs: Expressible, _ rhs: Expressible, wrap: Bool = true, function: String = #function) -> Expression<T> {
return function.infix(lhs, rhs, wrap: wrap)
}
|
anyGenerator { statement.next().map { Row(columnNames, $0) } }
|
AnyGenerator { statement.next().map { Row(columnNames, $0) } }
|
_decelerationDisplayLink = CADisplayLink(target: self, selector: Selector("decelerationLoop"))
|
_decelerationDisplayLink = CADisplayLink(target: self, selector: #selector(BarLineChartViewBase.decelerationLoop))
|
for var i = 0; i < FinalPeriod; i++ { yVals3.append(ChartDataEntry(value: dollars3[i], xIndex: i))
}
|
for i in 0 ..< FinalPeriod { yVals3.append(ChartDataEntry(value: dollars3[i], xIndex: i))
}
|
let tap:UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: "DismissKeyboard")
|
let tap:UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(RegisterViewController.DismissKeyboard))
|
for var i = 0; i < period.count; i++ { yVals2.append(ChartDataEntry(value: dollars2[i], xIndex: i))
}
|
for i in 0 ..< period.count {
yVals2.append(ChartDataEntry(value: dollars2[i], xIndex: i))
}
|
count--
|
count -= 1
|
closestIndex++
|
closestIndex += 1
|
for (var i = from; i < to; i += 1)
|
for i in from ..< to
|
private func performPanChange(var translation translation: CGPoint) -> Bool
{
}
|
private func performPanChange(translation translation: CGPoint) -> Bool
{
var translation = translation
}
|
for (var i = start; i <= endValue; i++) {
}
|
for i in start…endValue {
}
|
for (var i = _minX, maxX = min(_maxX + 1, _xAxis.values.count); i < maxX; i += _xAxis.axisLabelModulus) {
}
|
for i in _minX.stride(to: min(_maxX + 1, _xAxis.values.count), by: _xAxis.axisLabelModulus) {
}
|
for var i = 10; i >= 0; --i { |
for i in (0...10).reverse() { |
for (; m < high; m++) {
}
|
while(m<high) {
m += 1
}
|
for (var j = 0; j < clrs.count && j < entryCount; j++) {
}
|
for j in 0 ..< clrs.count {
if j < entryCount {
}
}
|
for (var j = 0; j < clrs.count && j < entryCount && j < xVals.count; j++) {
}
|
for j in 0 ..< clrs.count {
if j < entryCount && j < xVals.count {
}
}
|
var idx = 0
return expressed.template.characters.reduce("") { template, character in
return template + (character == "?" ? transcode(expressed.bindings[idx++]) : String(character))
}
|
var idx = 0
idx += 1
return expressed.template.characters.reduce("") { template, character in
return template + (character == "?" ? transcode(expressed.bindings[idx]) : String(character))
}
|
for (var i = _minX; i <= _maxX; i += _xAxis.axisLabelModulus) {
}
|
var i = _minX
while(i <= _maxX) {
i += _xAxis.axisLabelModulus
}
|
for (var i = 0, count = _velocitySamples.count; i < count - 2; i++) {
if (currentTime - _velocitySamples[i].time > 1.0) {
_velocitySamples.removeAtIndex(0)
i -= 1
count -= 1
} else {
break
}
}
|
var i = 0
var count = _velocitySamples.Count
while(i < count - 2) {
if (currentTime - _velocitySamples[i].time > 1.0) {
_velocitySamples.removeAtIndex(0)
i -= 1
count -= 1
} else {
break
}
i += 1
}
|
@warn_unused_result public static func FTS4(var columns: [Expressible] = [], tokenize tokenizer: Tokenizer? = nil) -> Module {
if let tokenizer = tokenizer {
columns.append("=".join([Expression<Void>(literal: "tokenize"), Expression<Void>(literal: tokenizer.description)])) } return Module(name: "fts4", arguments: columns) }
|
@warn_unused_result public static func FTS4(columns: [Expressible] = [], tokenize tokenizer: Tokenizer? = nil) -> Module {
var columns = columns
if let tokenizer = tokenizer { columns.append("=".join([Expression<Void>(literal: "tokenize"), Expression<Void>(literal: tokenizer.description)])) } return Module(name: "fts4", arguments: columns) }
|
반응형
'Programming > Swift' 카테고리의 다른 글
viewWithTag (0) | 2016.06.21 |
---|---|
process launch failed: failed to get the task for process [1383] (0) | 2016.05.24 |
해당 프로젝트에서 cocoapods 삭제 방법 (0) | 2016.03.18 |
SQLite 쿼리 실행 (0) | 2016.03.16 |
application 이름 변경 (0) | 2016.03.16 |