Semicolon after the method name in Objective-C implementation file

前端 未结 6 1700
醉话见心
醉话见心 2020-12-01 13:39
- (void) designImageViewNow; {

//some code here

}

Is it correct to write semicolon ; just after the method name before body brackets

6条回答
  •  孤城傲影
    2020-12-01 14:30

    I'm not sure when this was introduced, but there is a new warning raised when you do this.

    warn-semicolon-before-method-body

提交回复
热议问题