Skip to content

Commit 03ed90e

Browse files
committed
remove a bunch of parameter exclamation marks I think are wrong (mostly in CALayer)
1 parent 9854481 commit 03ed90e

File tree

16 files changed

+28
-26
lines changed

16 files changed

+28
-26
lines changed

bk2ch01p039conditionalConstraints/bk2ch01p039/Main.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6249" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="VVW-Se-F96">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="VVW-Se-F96">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6243"/>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
55
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
66
</dependencies>
77
<scenes>

bk2ch01p041designableView/bk2ch01p040sizeClasses/Base.lproj/Main.storyboard

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6245" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="BYZ-38-t0r">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="13F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="BYZ-38-t0r">
33
<dependencies>
4-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
55
</dependencies>
66
<scenes>
77
<!--View Controller-->

bk2ch01p045constraintsOrderOfEvents/ch14p398constraintsOrderOfEvents/MyView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class MyView: UIView, Printable {
3232
}
3333

3434
// gets an extra cycle, I've no idea why
35-
override func layoutSublayersOfLayer(layer: CALayer!) {
35+
override func layoutSublayersOfLayer(layer: CALayer) {
3636
super.layoutSublayersOfLayer(layer)
3737
println("\(self)\n\(__FUNCTION__)\n")
3838
}

bk2ch01p046transformsAndConstraints/ch14p400transformsAndConstraints/LoggingView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class LoggingView: UIView {
99
println("\(self) \(__FUNCTION__)\n")
1010
}
1111

12-
override func layoutSublayersOfLayer(layer: CALayer!) {
12+
override func layoutSublayersOfLayer(layer: CALayer) {
1313
super.layoutSublayersOfLayer(layer)
1414
println("\(self) \(__FUNCTION__)\n")
1515
}

bk2ch02p059sixBlueCircles/ch15p411sixBlueCircles/Views.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class MyView2 : UIView {
1818
}
1919
class MyView3 : UIView {
2020
override func drawRect(rect: CGRect) {}
21-
override func drawLayer(layer: CALayer!, inContext con: CGContext!) {
21+
override func drawLayer(layer: CALayer, inContext con: CGContext) {
2222
UIGraphicsPushContext(con)
2323
let p = UIBezierPath(ovalInRect: CGRectMake(0,0,100,100))
2424
UIColor.blueColor().setFill()
@@ -28,7 +28,7 @@ class MyView3 : UIView {
2828
}
2929
class MyView4 : UIView {
3030
override func drawRect(rect: CGRect) {}
31-
override func drawLayer(layer: CALayer!, inContext con: CGContext!) {
31+
override func drawLayer(layer: CALayer, inContext con: CGContext) {
3232
CGContextAddEllipseInRect(con, CGRectMake(0,0,100,100))
3333
CGContextSetFillColorWithColor(con, UIColor.blueColor().CGColor)
3434
CGContextFillPath(con)

bk2ch03p101drawingIntoLayer/ch16p450drawingIntoLayer/Smilers.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import UIKit
44

55

66
class Smiler:NSObject {
7-
override func drawLayer(layer: CALayer!, inContext ctx: CGContext!) {
7+
override func drawLayer(layer: CALayer, inContext ctx: CGContext) {
88
UIGraphicsPushContext(ctx)
99
//[[UIImage imageNamed: @"smiley"] drawInRect:CGContextGetClipBoundingBox(ctx)];
1010
UIImage(named:"smiley")!.drawAtPoint(CGPoint())
@@ -15,15 +15,15 @@ class Smiler:NSObject {
1515
}
1616

1717
class Smiler2:NSObject {
18-
override func displayLayer(layer: CALayer!) {
18+
override func displayLayer(layer: CALayer) {
1919
layer.contents = UIImage(named:"smiley")!.CGImage
2020
println("\(__FUNCTION__)")
2121
println(layer.contentsGravity)
2222
}
2323
}
2424

2525
class SmilerLayer:CALayer {
26-
override func drawInContext(ctx: CGContext!) {
26+
override func drawInContext(ctx: CGContext) {
2727
UIGraphicsPushContext(ctx)
2828
//[[UIImage imageNamed: @"smiley"] drawInRect:CGContextGetClipBoundingBox(ctx)];
2929
UIImage(named:"smiley")!.drawAtPoint(CGPoint())

bk2ch03p108compass/ch16p457compass/CompassView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class CompassLayer : CALayer {
104104

105105
}
106106

107-
override func drawLayer(layer: CALayer!, inContext con: CGContext!) {
107+
override func drawLayer(layer: CALayer, inContext con: CGContext) {
108108
println("drawLayer:inContext: for arrow")
109109

110110
// Questa poi la conosco pur troppo!

bk2ch03p112layerDepth/ch16p457compass/CompassView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class CompassLayer : CALayer {
123123

124124
}
125125

126-
override func drawLayer(layer: CALayer!, inContext con: CGContext!) {
126+
override func drawLayer(layer: CALayer, inContext con: CGContext) {
127127
println("drawLayer:inContext: for arrow")
128128

129129
// Questa poi la conosco pur troppo!

bk2ch03p114transformLayer2/ch16p457compass/CompassView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class CompassLayer : CALayer {
149149

150150
}
151151

152-
override func drawLayer(layer: CALayer!, inContext con: CGContext!) {
152+
override func drawLayer(layer: CALayer, inContext con: CGContext) {
153153
println("drawLayer:inContext: for arrow")
154154

155155
// Questa poi la conosco pur troppo!

bk2ch04p148layerAnimation/ch17p490layerAnimation/CompassView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class CompassLayer : CALayer {
9191

9292
}
9393

94-
override func drawLayer(layer: CALayer!, inContext con: CGContext!) {
94+
override func drawLayer(layer: CALayer, inContext con: CGContext) {
9595
println("drawLayer:inContext: for arrow")
9696

9797
// Questa poi la conosco pur troppo!

0 commit comments

Comments
 (0)