Git Product home page Git Product logo

buttoninsets's Introduction

ButtonInsets

Demo project for Reactive Cocoa and editing button insets.

Image, content and title edge insets are fiddly to change, hard to understand and poorly documented. This project is an iPad app to allow easy visual editing of the insets.

Whilst writing it I decided it would be a nice and simple introduction (for me!) to Reactive Cocoa, at least the UI binding parts of it.

To enable Reactive Cocoa, you need to install it via Cocoapods to the project (the podfile is included).

How to install Cocoapods - http://guides.cocoapods.org/using/getting-started.html Once you have installed Cocoapods, navigate to the project in the Terminal and run 'pod install'. If you have problems installing Reactive Cocoa check StackOverFlow

Then uncomment the following line in the prefix.pch file:

// Comment or uncomment this line to use the RAC functionality.
//#define USE_RAC

The non-reactive cocoa code is still in the project; you can see the difference by examining which code is included in the various #ifdef blocks.

If you don't want to use Reactive Cocoa or cocoapods then you'll need to amend the project to remove all of the podification. Though you really ought to be using Cocapods!

Known issue: When using reactive cocoa, the reset button doesn't reset the state for each editor. If you know how to fix this, pull requests are very welcome!

buttoninsets's People

Contributors

jrturton avatar eyuelt avatar joshdance avatar

Stargazers

ryanlinxc avatar akanchi avatar Jarrod Parkes avatar Antonin Biret avatar Nicolas Roche avatar Hokun Baek avatar Karnakar avatar Dongjin Suh avatar  avatar Aaron ttgb avatar Andrey Filipenkov avatar  avatar fushj avatar  avatar Guillermo Sáenz avatar wansong avatar Michael McGuire avatar T0ui9G avatar  avatar Alexandre Sagette avatar Ethan avatar Michael Gaylord avatar  avatar Cedric avatar tangyumeng avatar Albert Long avatar  avatar lingye avatar Luis Hernandez avatar  avatar  avatar 巩鹏军 avatar Juan Alvarez avatar François Benaiteau avatar  avatar mayulu avatar Jesse Armand avatar Zuyang Kou avatar Brent Gulanowski avatar Colin McArdell avatar Sebastien Rousseau avatar Mike Dunhem avatar Romain Briche avatar Mark Smith avatar

Watchers

David Marioni avatar mayulu avatar James Cloos avatar  avatar

buttoninsets's Issues

Missing Pods references

You appear to be using CocoaPods in your personal copy of this project, but it does not build on a clean checkout. I disabled the pods resource copy build phase, and removed the link reference to libPods.a, and the project works fine.

Otherwise, it works great. Thanks for this, it saved me some work.

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.