Nina Williams
Results
2
issues of
Nina Williams
能不能用guard和可选绑定代替强制解包? 能不能不要这么多无意义的强制转型? ``` let stillImageConnection: AVCaptureConnection? = connectionWithMediaType(mediaType: .video, connections: (stillImageOutput?.connections)! as [AnyObject]) open func connectionWithMediaType(mediaType: AVMediaType, connections: [AnyObject]) -> AVCaptureConnection? { for connection: AnyObject in connections { let connectionTmp:...