Change function argument

Change function argument from NSInteger to int to remove podspec
validation warning.