Semicolon after the method name in Objective-C implementation file

前端 未结 6 1690
醉话见心
醉话见心 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:31

    Grammatically it is OK to put a semicolon there. It serves no purpose, and it is discouraged to do that. Some compilers give warnings about this extra semicolon.

提交回复
热议问题