Nimbus has one of the best image gallery libraries around. The only thing of value in this repo is the nimbusMinimumExtraction.sh script that copies the bare minimum files from the slightly large nimbus project to get the image gallery working.
steps to make this work:
- git clone ...
- git submodule update --init --recursive
cd script && chmod 755 nimbusMinimumExtraction.sh && ./nimbusMinimumExtraction.sh
This script copies the bare minimum files from the nimbus project into the folder lib/nimbusPhotoMin
. You must have already fetched (step 2 above) the nimbus submodule for the script to work.
Nimbus includes caching NIInMemoryCache
. If you desire to use a different type of caching, you can comment out the following lines in the nimbusMinimumExtraction.sh
script
cp ${NIMBUS_CORE}/NIDataStructures.* ${DST}
cp ${NIMBUS_CORE}/NIInMemoryCache.* ${DST}
cp ${NIMBUS_CORE}/NIPreprocessorMacros.h ${DST}
-
copy script to your project directory
-
clone the nimbus project locally
-
change the script DIRECTORY LOCATION VARIABLES to point to nimbus project folder you just cloned and the location in your existing project where you would like nimbus photo gallery files to be located. i.e.
#DIRECTORY LOCATION VARIABLES NIMBUS_DIR=<path to nimbus project here> DST=<nimbus folder in LIB DIRECTORY of your existing project (i.e. DST="lib/nimbusPhotoMinFiles")>
-
run the script
-
Add the directory of minimum nimbus files you just copied from the script to your existing xcode project.