What is target?
A target specifies a product to build and contains the instructions for building the product from a set of files in a project or workspace. A target defines a single product; it organizes the inputs into the build system—the source files and instructions for processing those source files—required to build that product. Projects can contain one or more targets, each of which produces one product.
- Create a new target
- Update Info.plist file for selected target
- Managing Resources file (image, icon, splash image)
- Define theme for your target(optional)
1.Create a new target
2. Update Info.plist file for selected target
3.Managing Resources file (image, icon, splash image)
4.Define theme for your target(optional)
NSString* color=[[[NSBundle mainBundle] infoDictionary] objectForKey:@”CFBundleName”];
if ([color isEqualToString:@”free”]){
NAV_COLOR_RED=24; NAV_COLOR_GREEN=88; NAV_COLOR_BLUE=149;
ASENT_COLOR_RED=24; ASENT_COLOR_GREEN=88; ASENT_COLOR_BLUE=149;
}
else if([color isEqualToString:@”paid”]){
NAV_COLOR_RED=255; NAV_COLOR_GREEN=1; NAV_COLOR_BLUE=27;
ASENT_COLOR_RED=255; ASENT_COLOR_GREEN=1; ASENT_COLOR_BLUE=27;
}
else if([color isEqualToString:@”promo”]){
NAV_COLOR_RED=255; NAV_COLOR_GREEN=1; NAV_COLOR_BLUE=45;
ASENT_COLOR_RED=255; ASENT_COLOR_GREEN=1; ASENT_COLOR_BLUE=45;
}
]
The code and the examples shown in this article are available at Github Repository