Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RbBtSn0w committed Jan 9, 2018
1 parent 48ad43b commit 09b7156
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 13 deletions.
63 changes: 63 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
21 changes: 12 additions & 9 deletions RBSOdometer.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,29 @@ Pod::Spec.new do |s|
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!

s.description = <<-DESC
TODO: Add long description of the pod here.
DESC
# s.description = <<-DESC
# TODO: Add long description of the pod here.
# DESC

s.homepage = 'https://github.com/RbBtSn0w/RBSOdometer'
# s.screenshots = 'https://github.com/RbBtSn0w/RBSOdometer/blob/master/RBSOdometerDemo.gif'
s.screenshots = 'https://github.com/RbBtSn0w/RBSOdometer/blob/master/RBSOdometerDemo.gif'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'RbBtSn0w' => '[email protected]' }
s.source = { :git => 'https://github.com/RbBtSn0w/RBSOdometer.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/RbBtSn0w'
s.source = { :git => 'https://github.com/RbBtSn0w/RBSOdometer.git', :tag => s.version }
s.requires_arc = true
s.social_media_url = 'https://twitter.com/RbBtSn0w'

s.ios.deployment_target = '7.0'
#s.watchos.deployment_target = '2.0'
#s.tvos.deployment_target = '9.0'

s.source_files = 'RBSOdometer/Classes/**/*'
s.source_files = 'RBSOdometer/Classes/*.{h,m}'

# s.resource_bundles = {
# 'RBSOdometer' => ['RBSOdometer/Assets/*.png']
# }

# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
#s.public_header_files = 'Pod/Classes/*.h'
s.frameworks = 'UIKit'
# s.dependency 'AFNetworking', '~> 2.3'
end
Empty file removed RBSOdometer/Assets/.gitkeep
Empty file.
Empty file removed RBSOdometer/Classes/.gitkeep
Empty file.
7 changes: 3 additions & 4 deletions RBSOdometer/Classes/RBSOdometerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ - (void)createContentForLayer:(CAScrollLayer *)scrollLayer withStartDigitsString
if (isNumber == NO) {
return;
}
NSInteger number = isNumber ? [digitsString integerValue] : 10;//0~9
NSUInteger number = isNumber ? (NSUInteger)[digitsString integerValue] : 10;//0~9

NSInteger maxDensity = isNumber ? self.density + 1 : self.density;
for(NSUInteger i = 0; i < maxDensity; ++i){
if (isNumber) {
[textForScroll addObject:[NSString stringWithFormat:@"%lu", (number + i) % 10]];
[textForScroll addObject:[NSString stringWithFormat:@"%tu", (NSUInteger)((number + i) % 10)]];
}else {
[textForScroll addObject:[NSString stringWithFormat:@"%lu", i]];
[textForScroll addObject:[NSString stringWithFormat:@"%tu", i]];
}
}
};
Expand Down Expand Up @@ -334,4 +334,3 @@ - (NSString *)formatterNumberString:(NSUInteger)aNumber {
return paddedNumber;
}
@end

0 comments on commit 09b7156

Please sign in to comment.