18
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

swift 警告、エラーまとめ

Posted at

##未使用変数の警告##
使用していない変数がある場合に発生する警告
:pencil: 未使用変数を削除するか

Initialization of immutable value 'videoLayer' was never used; consider replacing with assignment to '_' or removing it

 
##ラムダ式で型が曖昧な場合に出るエラー##
:pencil:多々書籍内でも修正前の記述になっているので要注意

self.ImageOut.captureStillImageAsynchronouslyFromConnection(videoConnection, completionHandler:{(imageDataBuffer, error)->Void in
	・・・
})
self.ImageOut.captureStillImageAsynchronouslyFromConnection(videoConnection, completionHandler:{(imageDataBuffer:CMSampleBufferRef, error:NSError)->Void in
   ・・・	
})

type of expression is ambiguous without more context

18
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?