TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Depends on: | |
RoutingHTTPServer | ~> 1.0.0 |
CCTemplate | ~> 0.2.0 |
Base64 | ~> 1.0.1 |
DynamicImagePlacer is a Library for iOS developer and designer for simply replace the image files in resource bundle without rebuild the app.
Supports iOS 6+
After doing serveral application projects in a team, I find that some basic facts of team co-working between application developer and UI/UX designer.
So here comes the DynamicImagePlacer idea, with which
Slightly use some techniques like Runtime Method Swizzling and setting up an iOS webserver.
When application get restart, code/Storyboard/Xib usage of the original image in resource bundle will be replaced with the replacement version image in the docuemtn directory.
So you should better disintegrate DynamicImagePlacer in the build in case you will submit it to AppStore, although I have carefully written the macros to make sure the Runtime Method Swizzling code will not be included in release build, which also means you can not use the DynamicImagePlacer feature in Release build.
platform :ios, '6.0'
pod "DynamicImagePlacer", "~> 0.0.1"
You can use DynamicImagePlacer in almost any type of iOS projects. For example, the Sample project is an simple project like below. It has an UIImageView and a UIButton whose image is set by Storyboard, and an UIImageView whose image is set by code.
You can just add one line code in your application:didFinishLaunchingWithOptions: delegate.
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[[DynamicImagePlacer sharedPlacer] startServer];
return YES;
}