Changed int to NSInteger to avoid iOS 7/64bit warnings

Changed 'int' declarations to NSInteger to avoid iOS7/64bit warnings in Xcode 5