fabriziobrancati / bfkit Goto Github PK
View Code? Open in Web Editor NEWBFKit is a collection of useful classes and categories to develop Apps faster.
Home Page: https://www.fabriziobrancati.com
License: MIT License
BFKit is a collection of useful classes and categories to develop Apps faster.
Home Page: https://www.fabriziobrancati.com
License: MIT License
This method,if I enter two identical characters,it will crash;
For example:
NSString *search = @"Search in #this# string!";
BFLog(@"Search: %@", [search searchCharStart:'#' charEnd:'#'])
it will crash.
I did a little bit of repair.
(NSString *)searchInString:(NSString *)string charStart:(char)start charEnd:(char)end
{
int inizio = 0, stop = 0;
for(int i = 0; i < [string length]; i++)
{
if([string characterAtIndex:i] == start && inizio == 0)
{
inizio = i+1;
i += 1;
continue;
}
if([string characterAtIndex:i] == end)
{
stop = i;
break;
}
}
stop -= inizio;
return [[string substringFromIndex:inizio] substringToIndex:stop];
}
Apple rejected build related to the UIWebview extension. Do you have any updates for that?
Hello, I'm having problems on my project using this library. I've found this StackOverflow article, is this flag already in the build process for the library?
BUILD_LIBRARY_FOR_DISTRIBUTION
Hey dude,
when i add BFKit folder to my project and #import "BFKit.h"
the errors pop:
Use of "@import" when modules are disabled
and i checked my build settings, it's all good, and i added all the required frameworks, so it's very weird
" [self moveLocalFile:[NSString stringWithFormat:@"%@-Settings.plist", settings] fromDirectory:DirectoryTypeMainBundle toDirectory:DirectoryTypeLibrary withFolderName:@""] " in (id)getSettings:(NSString *)settings objectForKey:(NSString *)objKey and (BOOL)setSettings:NSString *)settings object:(id)value forKey:(NSString *)objKey;
if "withFolderName:@""" the %@-Settings.plist will be a folder with the name "/Library/App-Settings.plist/",isn't a file
([[NSFileManager defaultManager] copyItemAtPath:originPath toPath:destinationPath error:nil]) will fail because there has had a file " %@-Settings.plist ",but it's a folder,can not be read as a pist
the same bug in swift version
could you plz make it pod
File : BFKit/Source/Additions/UIKit/UIImage+BFKit.m
Method : - (UIImage * _Nonnull)imageAtRect:(CGRect)rect
Not working with the image scale > 2 but working image scale <=2
(NSArray )reversedArray:(NSArray)array
{
NSMutableArray *arrayTemp = [NSMutableArray arrayWithCapacity:[array count]];
NSEnumerator *enumerator = [array reverseObjectEnumerator];
for(id element in enumerator) [arrayTemp addObject:element];
return array;
}
correct:
return arrayTemp;
Hello,
I'm getting a compiler error "Type of expression is ambiguous without more context".
Basically, it's the conflict between NSObject.isValid()
and Timer.isValid
.
I've noticed that 'isValid' is quite commonly used in some other third party libraries, e.g: Firebase. I wonder if it should be renamed to something else to avoid this conflict.
Cheers.
Actually, i'm using this pod file for my ObjectiveC projects. and, it's contains UIWebView classes.
As per the apple guidelines this is deprecated & you guys are fixed this issue on Swift pod file.
pod 'BFKit'
Could you please update this for ObjectiveC Pod file?
the same bug in UIDevice+BFKit.h about SCREEN_WIDTH and SCREEN_HEIGHT... BFKit-Swift has fixt it.Just a reminder :)
Add support to _Nullable
& _Nonnull
More info here: Apple
Hope you can add it,thank you
Hi
just an FYI
for the first month of the year in english its January not Genuary which is misspelt in the NSDate category and in the localised file for english
:)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.