Latest 1.0.2
Homepage https://github.com/RocketsChen/CDDNewFeatures
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit
Authors

A simple new feature integration framework.

Language

Objective-C

Requirements

  • Xcode 8+

Usage

  • You can do that.
- (void)setUpRootViewController
{
    UIViewController *dcHomeVc = [[UINavigationController alloc] initWithRootViewController:[DCFeatureDemoViewController new]];

    if ([DCFeaturesTool dc_isShowNewFeatures]) {

        DCNewFeaturesViewController *dcNewVc = [DCNewFeaturesViewController new];
        [dcNewVc setUpFeatureAttribute:^(NSArray *__autoreleasing *usImageArray, NSArray *__autoreleasing *ixImageArray, NSString *__autoreleasing *imEnjoyImg, UIColor *__autoreleasing *selColor, BOOL *isDefaultPass, BOOL *showSkip, BOOL *showPageCount) {

            *usImageArray = @[@"guide1",@"guide2",@"guide3",@"guide4"];
            *ixImageArray = @[@"guide1_x",@"guide2_x",@"guide3_x",@"guide4_x"];
            *imEnjoyImg = @"hidden";

            *showPageCount = YES;
            *showSkip = YES;
            *isDefaultPass = YES;

        } WithDismissBlock:^{
            [DCFeaturesTool dc_restoreRootViewController:dcHomeVc WithAnimations:DCFeaturesChangeVcGradient];
        }];

        //        dcNewVc.dismissBlock = ^{//Same as the DismissBlock
        //            [DCFeaturesTool dc_restoreRootViewController:dcHomeVc WithAnimations:DCFeaturesChangeVcGradient];
        //        };

        self.window.rootViewController = dcNewVc;

    }else{

        self.window.rootViewController = dcHomeVc;
    }
}
  • Other Settings.
[dcNewVc setUpFeatureControl:^(CGRect *skipBtnRect, CGRect *experienceBtnRect) {

    CGFloat dcY = (isFiPhoneX) ? 80: 60;
    *experienceBtnRect = CGRectMake([UIScreen mainScreen].bounds.size.width - 70,dcY, 70, 40);
    *skipBtnRect = CGRectMake([UIScreen mainScreen].bounds.size.width - 85,[UIScreen mainScreen].bounds.size.height - dcY, 65, 30);
}];

Installation

Manually:

  • Drag all source files(CDDNewFeatures) under folder Extension to your project.
  • Import the header file in the AppDelegate.
  • A method is called

CocoaPods:

  • Installation with CocoaPods´╝Üpod ‘CDDNewFeatures’

Swift version:

  • Waiting for development

Agreement

Latest podspec

{
    "name": "CDDNewFeatures",
    "version": "1.0.2",
    "summary": "A simple new feature integration framework.",
    "description": "CDDNewFeatures is a very useful wrapper class",
    "homepage": "https://github.com/RocketsChen/CDDNewFeatures",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "RcoketsChen": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/RocketsChen/CDDNewFeatures.git",
        "tag": "1.0.2"
    },
    "source_files": [
        "CDDNewFeatures",
        "CDDNewFeatures/**/*"
    ],
    "requires_arc": true,
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This