Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No visible @interface for 'NSString' declares the selector 'unsignedI… #113

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@

- (BOOL)isEmpty;

- (NSUInteger)unsignedIntValue;

@end
13 changes: 13 additions & 0 deletions Project/Vkontakte-iOS-SDK-LV/Helpers/NSString+Utilities.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ - (BOOL)isEmpty
return (0 == [filtered length]);
}

- (NSUInteger)unsignedIntValue {
static NSNumberFormatter *formatter = nil;
if (!formatter) {
formatter = [[NSNumberFormatter alloc] init];
formatter.formatterBehavior = NSNumberFormatterBehavior10_4;
formatter.groupingSeparator = @"";
}
NSNumber *unsignedInt = [formatter numberFromString:self];
if (!unsignedInt) return 0;
return unsignedInt.unsignedIntValue;
}

#pragma mark - Methods for internal usage

- (BOOL)possibleToCompareStrings:(NSString *)string
Expand All @@ -137,4 +149,5 @@ - (BOOL)possibleToCompareStrings:(NSString *)string
}



@end
25 changes: 25 additions & 0 deletions Vkontakte-iOS-SDK-LV.podspec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "Vkontakte-iOS-SDK-LV",
"version": "4.7.14",
"summary": "Powerful & flexible Vkontakte iOS SDK, fork from https://github.com/AndrewShmig/Vkontakte-iOS-SDK-LV.git with one bug fixed",
"homepage": "https://github.com/userow/Vkontakte-iOS-SDK-LV",
"license": {
"type": "MIT",
"file": "Project/Vkontakte-iOS-SDK-LV/LICENSE.txt"
},
"authors": {
"Andrew Shmig": "[email protected]"
},
"source": {
"git": "https://github.com/userow/Vkontakte-iOS-SDK-LV.git",
"tag": "v4.7.14"
},
"source_files": "Project/Vkontakte-iOS-SDK-LV/**/*.{h,m}",
"requires_arc": true,
"platforms": {
"ios": "5.0"
},
"ios": {
"frameworks": "Foundation"
}
}