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

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift