Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Yagio/ios-helper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ios-helper

iOS and Objective C classes utility and helper

Collections

CollectionHelper

Example

        CollectionHelper *col = [[CollectionHelper alloc] init];
        [col add:@"bob"];
        [col add:@"mary"];

        NSLog(@"Size: %ld", [col size]);
        NSLog(@"Content: %@", col);
        NSLog(@"Empty? %@", [col isEmpty]?@"YES":@"NO");

        NSLog(@"Contains 'bob'? %@", [col contains:@"bob"]?@"YES":@"NO");

        [col clear];
        NSLog(@"Content: %@", col);
        NSLog(@"Empty? %@", [col isEmpty]?@"YES":@"NO");

Date

DateHelper

Example

    NSLog(@"Converted date %@", [DateHelper convert:YOUR_DATE usingPattern:@"dd/MM/yyyy"]);

    NSLog(@"Today is %@", [DateHelper convertToday:@"dd/MM/yyyy"]);

Plist

PlistManager

Example

    // Move plist file (if not exists) from Bundle to Document Directory
    PlistManager *plist = [[PlistManager alloc] init:@"Config"];

    // Print Plist file content
    [plist debug];

    // Change a Plist File key/value
    [plist changeValue:[[NSNumber alloc] initWithDouble:100.0] forKey:@"MyExampleNumber"];

Feel free to fork and contribute to this project.

About

iOS and Objective C classes utility and helper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%