iOS Coding standards || XCode coding standards

 Solution:

iOS had some specific guidelines for coding.

Variable declaration:

Variable must start with small letters.If they had second important name then that name have capital letter.Like below

var name:String!  // correct

var Name:String!  // wrong


var firstName:String! //correct 

var Firstname:String! //Wrong

Function Declaration:

  func didChangesFontSize(fontSize:Float) // correct 


  func Didchangesfontsize(fontSize:Float) // Wrong 


Functions must start with small letter and follow to capital letters.

Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift