Code Monkey home page Code Monkey logo

ezios7's Introduction

iOS 7 EZ-Bake

PromiseKit 2 does not easily support iOS 7, sorry, but that’s just how things are in this brave, new, iOS 8 world. This is a generated repository that makes integrating PromiseKit 2 into an iOS 7 project as easy as possible. Simply:

  1. Download the zip.
  2. Drag and drop the three PromiseKit.* files into your project.
  3. Drag and drop any of the sources from the Categories directory that you need.

Please note that you will almost certainly want sources from the Categories directory. If you eg. are surprised that you aren’t getting any completion for promises on NSURLConnection, UIAlertView or UIView objects it is because you must add these sources manually from the Categories directory!

More Details

  • If your project is mixed (Objective-C & Swift) do not add PromiseKit.h to your bridging header.
  • If your project is just Swift you do not need the .h or the .m files.
  • If your project is just Objective-C you DO still need the .swift file.
  • git submodules seems like a good way to manage this depedency, but just downloading the files and adding them manually works fine.

Please Note 1

If your project is mixed Objective-C and Swift and you need to import your generated Swift header you must import the generated header first:

#import "YourProject-Swift.h"
#import "PromiseKit.h"

Please Note 2

If you want the NSURLConnection categories, you will need to install OMGHTTPURLRQ:

pod "OMGHTTPURLRQ", "~> 2.1"

If you need the Swift NSURLConnection category you will need to add the following to your bridging header:

#import <OMGHTTPURLRQ/OMGHTTPURLRQ.h>
#import <OMGHTTPURLRQ/OMGUserAgent.h>

Alternatively

Considering all of the above it is much easier to either:

  1. Deploy to iOS 8; or
  2. Use PromiseKit 1.x (works back to iOS 5!):
pod "PromisKit", "~> 1.5"

Please note, there is no Swift support with PromiseKit 1.x.

ezios7's People

Contributors

mxcl avatar

Watchers

Christopher Bowns avatar James Cloos avatar

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.