Code Monkey home page Code Monkey logo

samcategories's Introduction

SAMCategories

A collection of useful Foundation and UIKit categories.

SAMCategories are tested on iOS 6 and Mac OS 10.8 and requires ARC. The will probably work on lower deployment targets though. Released under the MIT license.

Installation

Simply add the files in the SAMCategories/Foundation and/or SAMCategories/UIKit to your project. If you add the Foundation categories, you'll need to add SAMCategories/SAMCategories.bundle to your project as well. Make sure the bundle is copied to your application's resources.

If you're using CocoaPods, simply add the following line to your Podfile:

pod 'SAMCategories'

Enjoy.

samcategories's People

Contributors

calebd avatar dmiluski avatar jlnr avatar nickcheng avatar soffes avatar theill avatar troyharris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

samcategories's Issues

Using with CocoaPods and Swift

I have CocoaPods 0.36 beta which supports Swift installed. Usually I can install Objective-C dependencies through that as well. I'm having an issue trying to add SAMCategories
though.

I created the following Podfile.

source 'https://github.com/CocoaPods/Specs.git'

use_frameworks!

platform :ios, '8.0'

pod 'SAMCategories'

Ran pod install and the library gets integrated as a framework. Build it and no issues came up.

Now to use the methods from this library, I need to import it to the file so I added the line import SAMCategories to a file and build it again. Then I get the following errors.
/Users/isurunanayakkara/Developer/Xcode Projects/Swift/ISODateConverting/Pods/SAMCategories/SAMCategories/NSString+SAMAdditions.h:10:9: Include of non-modular header inside framework module 'SAMCategories.NSString_SAMAdditions'

and this.
Could not build Objective-C module 'SAMCategories'

Any idea why this is happening? I have added Objective-C libraries to Swift projects using CocoaPods and used them with no problem. I can't figure out what's wrong here.

NSDate+SAMAdditions __stack_chk_fail in strptime

Hi,
I'm using this library and I have same problems, that i could not see what could it be.
The problem is when using
NSDate+SAMAdditions to parse iso8601 using the function
+(NSDate *)sam_dateFromISO8601String:(NSString *)iso8601;

I have a __stack_chk_fail when it try to use strptime at line 81.
I used this date to parse "2015-03-26T18:08:22.388461"
Regards
Juan

Support multiple language string files in pod spec

I noticed there was an issue for new copy resources in the CocoaPods repo. Guessing this is addressed in that. Until then, a workaround, would be awesome.

I tired:

spec.resources = 'SAMCategories/Strings/*.lproj/*.strings'

But that just copied one of them from a random language. Makes sense since it's not copying the folders. Not sure how to solve this or if it's supported at all.

Would love some help, @alloy.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.